"Fossies" - the Fresh Open Source Software Archive

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

    1 --based on c.lang
    2 
    3 Description="OpenSCAD"
    4 
    5 
    6 Categories = {"source"}
    7 
    8 Digits = [[ (?:0x|0X|0b)[0-9a-fA-F']+|\d*[\.]?\d+(?:[eE][\-\+]?\d+)?[lLuU]* ]]
    9 
   10 Keywords={
   11   { Id=1,
   12     List={ "echo", "assign", "let", "if", "else", "for", "intersection_for", "include", "use", "union", "difference", "intersection", "render",
   13           "intersection_for", "scale", "rotate", "translate", "mirror", "multmatrix", "color", "minkowski", "hull", "projection", "linear_extrude",
   14           "rotate_extrude", "offset", "cube", "sphere", "cylinder", "polyhedron", "surface", "square", "circle", "polygon", "import_dxf", "text",
   15           "import", "child", "children"
   16         }
   17   },
   18   { Id=2,
   19     List= { "abs", "acos", "asin", "atan", "atan2", "ceil", "cos", "exp", "floor", "ln", "log", "lookup", "max", "min", "pow", "rands", "round", "sign",
   20             "sin", "sqrt", "tan", "str", "len", "search", "version", "version_num", "concat", "chr", "dxf_cross", "dxf_dim"
   21           }
   22   },
   23   { Id=3,
   24     List= { "true", "false"
   25           }
   26   },
   27   { Id=3,
   28     Regex=[[\$\w+]]
   29   },
   30   { Id=4,
   31     Regex=[[(\w+)\s*\(]]
   32   }
   33 }
   34 
   35 Strings = {
   36   Delimiter=[["]],
   37 }
   38 
   39 Comments = {
   40   { Block=true,
   41     Nested=false,
   42     Delimiter = { [[\/\*]], [[\*\/]] }
   43   },
   44   {
   45     Block=false,
   46     Delimiter = { [[//]] }
   47   }
   48 }
   49 
   50 IgnoreCase=false
   51 
   52 Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\&|<|>|\!|=|\/|\*|\%|\+|\-|\~|\||\^|\?]]
   53 
   54 EnableIndentation=true