Sha256: ead4fdde9f00766800ac485391b119cdc831eed5bbc3a5b540b9e39c64de8992

Contents?: true

Size: 665 Bytes

Versions: 3

Compression:

Stored size: 665 Bytes

Contents

# frozen_string_literal: true

module ThemeCheck
  module LanguageServer
    PARTIAL_RENDER = %r{
      \{\%-?\s*render\s+'(?<partial>[^']*)'|
      \{\%-?\s*render\s+"(?<partial>[^"]*)"|

      # in liquid tags the whole line is white space until render
      ^\s*render\s+'(?<partial>[^']*)'|
      ^\s*render\s+"(?<partial>[^"]*)"
    }mix
    ASSET_INCLUDE = %r{
      \{\%-?\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*'(?<partial>[^']*)'\s*\|\s*asset_url|
      ^\s*"(?<partial>[^"]*)"\s*\|\s*asset_url
    }mix
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
theme-check-1.3.0 lib/theme_check/language_server/constants.rb
theme-check-1.2.0 lib/theme_check/language_server/constants.rb
theme-check-1.1.0 lib/theme_check/language_server/constants.rb