Sha256: 84ebf47b53820f1ab3d9fee9515ba5da557981817ec4f72cc38d6eafc5d3d133
Contents?: true
Size: 883 Bytes
Versions: 1
Compression:
Stored size: 883 Bytes
Contents
# frozen_string_literal: true module PlatformosCheck module LanguageServer def self.partial_tag(tag) / \{%-?\s*#{tag}\s+'(?<partial>[^']*)'| \{%-?\s*#{tag}\s+"(?<partial>[^"]*)"| # in liquid tags the whole line is white space until the tag ^\s*#{tag}\s+'(?<partial>[^']*)'| ^\s*#{tag}\s+"(?<partial>[^"]*)" /mix end PARTIAL_RENDER = partial_tag('render') PARTIAL_INCLUDE = partial_tag('include') PARTIAL_SECTION = partial_tag('section') ASSET_INCLUDE = / \{\{-?\s*'(?<partial>[^']*)'\s*\|\s*asset_url| \{\{-?\s*"(?<partial>[^"]*)"\s*\|\s*asset_url| # in liquid tags the whole line is white space until the asset partial ^\s*(?:echo|assign[^=]*=)\s*'(?<partial>[^']*)'\s*\|\s*asset_url| ^\s*(?:echo|assign[^=]*=)\s*"(?<partial>[^"]*)"\s*\|\s*asset_url /mix end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
platformos-check-0.0.1 | lib/platformos_check/language_server/constants.rb |