erlang
log
query
parse time:
19.0 ms
Parser
-module(hello). -export([fact/1]). fact(1) -> 1; fact(N) -> N * fact(N-1).
[(integer) (float)] @number (function name: (atom) @function) (call function: (atom) @function) [":" "#" "->"] @operator (binary_operator operator: _ @operator) (unary_operator operator: _ @operator) (call module: (atom) @module) ["(" ")" "{" "}" "[" "]" "<<" ">>"] @punctuation.bracket ["case" "fun" "if" "of" "when" "end" "try" "catch" "after"] @keyword (comment) @comment ((variable) @comment (#match? @comment "^_")) ["," "." "-"] @punctuation.delimiter (string) @string ((attribute name: (atom) @keyword) (#match? @keyword "^(module|export|export_type|include|include_lib|define|ifdef|ifndef|if|elif|else|endif|import|vsn|on_load|behaviour|record|file|type|opaque|spec)$")) (macro "?"+ @macro name: (_) @macro) @macro (variable) @variable (atom) @atom (character) @character (ERROR) @error