"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/langDefs/styl.lang" (12 May 2020, 707 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 "styl.lang": 3.53_vs_3.54.

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