Advertisement
Guest User

Untitled

a guest
Nov 13th, 2015
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. {
  2. "indentation":{
  3. "regex": "(\\s*)",
  4. "skip": true
  5. },
  6. "keywords": {
  7. "regex": "\\b([a-z]{2,6})\\b",
  8. "list": {
  9. "var_lex": "var",
  10. "const_lex": "const",
  11. }
  12. },
  13. "ident": {
  14. "regex": "\\b([_a-zA-Z]\\w*)\\b",
  15. "link": "arrayOfIdent"
  16. },
  17. "digit_const": {
  18. "regex": "\\b(\\d+)\\b",
  19. "link": "arrayOfConst"
  20. },
  21. "string_const": {
  22. "regex": "\\(.*)\\",
  23. "link": "arrayOfConst"
  24. },
  25. "one_line_comment": {
  26. "regex": "\\/\\/(.*)$",
  27. "skip": true
  28. },
  29. "multi_line_comment": {
  30. "regex": "\\/\\*([\\s\\S]*?)\\*\\/",
  31. "skip": true
  32. },
  33. "operators": {
  34. "regex": "([-=+\\*\\/&\\|!>:<]{1,2})",
  35. "list": {
  36. "and": "&&",
  37. "or": "||",
  38. "greater_or_eq": ">=",
  39. "less_or_eq": "<=",
  40. "not_equal": "!=",
  41. "assing": ":=",
  42. "plus": "+",
  43. "minus": "-",
  44. "mult": "*",
  45. "div": "/",
  46. "equal": "=",
  47. "greater": ">",
  48. "less": "<",
  49. "not": "!"
  50. }
  51. },
  52. "separators": {
  53. "regex": "([[\\])(:,;.]{1})",
  54. "list": {
  55. "open_parentheses": "(",
  56. "close_parentheses": ")",
  57. "open_bracket": "[",
  58. "close_bracket": "]",
  59. "semicolon": ";",
  60. "colon": ":",
  61. "comma": ",",
  62. "point": "."
  63. }
  64. }
  65. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement