Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "indentation":{
- "regex": "(\\s*)",
- "skip": true
- },
- "keywords": {
- "regex": "\\b([a-z]{2,6})\\b",
- "list": {
- "var_lex": "var",
- "const_lex": "const",
- }
- },
- "ident": {
- "regex": "\\b([_a-zA-Z]\\w*)\\b",
- "link": "arrayOfIdent"
- },
- "digit_const": {
- "regex": "\\b(\\d+)\\b",
- "link": "arrayOfConst"
- },
- "string_const": {
- "regex": "\\(.*)\\",
- "link": "arrayOfConst"
- },
- "one_line_comment": {
- "regex": "\\/\\/(.*)$",
- "skip": true
- },
- "multi_line_comment": {
- "regex": "\\/\\*([\\s\\S]*?)\\*\\/",
- "skip": true
- },
- "operators": {
- "regex": "([-=+\\*\\/&\\|!>:<]{1,2})",
- "list": {
- "and": "&&",
- "or": "||",
- "greater_or_eq": ">=",
- "less_or_eq": "<=",
- "not_equal": "!=",
- "assing": ":=",
- "plus": "+",
- "minus": "-",
- "mult": "*",
- "div": "/",
- "equal": "=",
- "greater": ">",
- "less": "<",
- "not": "!"
- }
- },
- "separators": {
- "regex": "([[\\])(:,;.]{1})",
- "list": {
- "open_parentheses": "(",
- "close_parentheses": ")",
- "open_bracket": "[",
- "close_bracket": "]",
- "semicolon": ";",
- "colon": ":",
- "comma": ",",
- "point": "."
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement