Sha256: a303b514e8fc01c8281c8edf24e2dbcc32c362116d40ccace2d4ae4276347851
Contents?: true
Size: 1.3 KB
Versions: 11
Compression:
Stored size: 1.3 KB
Contents
# frozen_string_literal: true module PlatformosCheck module LanguageServer module VariableLookupFinder module Constants ANY_STARTING_TAG = /\s*#{Liquid::AnyStartingTag}/ ANY_ENDING_TAG = /#{Liquid::TagEnd}|#{Liquid::VariableEnd}\s*^/om UNCLOSED_SQUARE_BRACKET = /\[[^\]]*\Z/ ENDS_IN_BRACKET_POSITION_THAT_CANT_BE_COMPLETED = / ( # quotes not preceded by a [ (?<!\[)['"]| # closing ] \]| # opening [ \[ )$ /x VARIABLE_START = /\s*#{Liquid::VariableStart}/ VARIABLE_LOOKUP_CHARACTERS = /[a-z0-9_.'"\]\[]/i VARIABLE_LOOKUP = /#{VARIABLE_LOOKUP_CHARACTERS}+/o SYMBOLS_PRECEDING_POTENTIAL_LOOKUPS = / (?: \s(?: if|elsif|unless|and|or|#{Liquid::Condition.operators.keys.join("|")} |echo |return |log |paginate |case|when |cycle |in ) |[:,=] ) \s+ /omix ENDS_WITH_BLANK_POTENTIAL_LOOKUP = /#{SYMBOLS_PRECEDING_POTENTIAL_LOOKUPS}$/oimx ENDS_WITH_POTENTIAL_LOOKUP = /#{SYMBOLS_PRECEDING_POTENTIAL_LOOKUPS}#{VARIABLE_LOOKUP}$/oimx end end end end
Version data entries
11 entries across 11 versions & 1 rubygems