"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/langDefs/verilog.lang" (12 May 2020, 1864 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.

    1 
    2 Description="Verilog"
    3 
    4 Categories = {"hardware"}
    5 
    6 -- recognize stuff like 5'b0 as number
    7 Digits=[[ (?:0x|0X)[0-9a-fA-F]+|\d*[\.\_]?[\d+\'](?:[eE][\-\+]\d+)?h?[0-9a-fA-F]* ]]
    8 
    9 Keywords={
   10   { Id=1,
   11     List={"always", "and", "assign", "attribute", "begin", "buf", "bufif0",
   12             "bufif1", "case", "casex", "casez", "cmos", "deassign", "default", "defparam",
   13             "disable", "edge", "else", "end", "endattribute", "endcase", "endmodule",
   14             "endfunction", "endprimitive", "endspecify", "endtable", "endtask", "event",
   15             "for", "force", "forever", "fork", "function", "highz0", "highz1", "if",
   16             "initial", "inout", "input", "integer", "join", "large", "macromodule",
   17             "medium", "module", "nand", "negedge", "nmos", "nor", "not", "notif0", "notif1",
   18             "or", "output", "parameter", "pmos", "posedge", "primitive", "pull0", "pull1",
   19             "pullup", "pulldown", "rcmos", "reg", "release", "repeat", "rnmos", "rpmos",
   20             "rtran", "rtranif0", "rtranif1", "scalared", "small", "specify", "specparam",
   21             "strength", "strong0", "strong1", "supply0", "supply1", "table", "task", "time",
   22             "tran", "tranif0", "tranif1", "tri", "tri0", "tri1", "triand", "trior",
   23             "trireg", "use", "vectored", "wait", "wand", "weak0", "weak1", "while", "wire",
   24             "wor", "xnor", "xor"},
   25   },
   26   { Id=2,
   27     Regex=[[\$\w+]],
   28   },
   29   { Id=3,
   30     Regex=[[#\d+]],
   31   },
   32   { Id=4,
   33     Regex=[[(\w+)\s*\(]],
   34   },
   35 }
   36 
   37 Strings={
   38   Delimiter=[["]],
   39   Interpolation = [[ %\w ]],
   40 
   41 }
   42 
   43 Escape=[[ \\[ntvbrfa\\\?'"]|\\\d{3} ]]
   44 
   45 IgnoreCase=false
   46 
   47 Comments={
   48   { Block=false,
   49     Delimiter= { [[\/\/]] },
   50   },
   51   { Block=true,
   52     Nested=false,
   53     Delimiter= { [[\/\*]],[[\*\/]],}
   54   }
   55 }
   56 
   57 PreProcessor={
   58   Prefix=[[`]],
   59 }
   60 
   61 Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\:|\&|<|>|\!|\=|\/|\*|\%|\+|\-|\~|\@]]