"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/langDefs/less.lang" (12 May 2020, 631 Bytes) of package /windows/www/highlight-3.57-x64.zip:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "less.lang": 3.53_vs_3.54.

    1 Description="LESS"
    2 
    3 Categories = {"markup"}
    4 
    5 
    6 Identifiers=[[ [a-zA-Z_\-][\w\-]* ]]
    7 
    8 Digits=[=[ \#[[:xdigit:]]{3,6}|\d*\.?\d+?\w* ]=]
    9 
   10 Keywords={
   11   { Id=1,
   12     Regex=[[@\{[\w\-]+?\}]],
   13   },
   14   { Id=2,
   15     Regex=[[\$[\w\-]+]],
   16   },
   17     { Id=3,
   18     Regex=[[@[\w\-]+]],
   19   },
   20   { Id=4,
   21     Regex=[[([\w\-]+)\s*\(]],
   22   },
   23 }
   24 
   25 Strings={
   26   Delimiter=[["|']],
   27   Escape= [=[ \\[[:xdigit:]]{4} ]=],
   28 }
   29 
   30 IgnoreCase=false
   31 
   32 Comments = {
   33   { Block=true,
   34     Nested=false,
   35     Delimiter = { [[\/\*]], [[\*\/]] }
   36   },
   37   {
   38     Block=false,
   39     Delimiter = { [[//]] }
   40   }
   41 }
   42 
   43 Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\&|<|>|\!|\=|\/|\*|\%|\+|\-|\~|\#]]