This repo contains code to mirror other repos. It also contains the code that is getting mirrored.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
429 B

  1. //
  2. // Numbers
  3. //
  4. DIGIT: "0".."9"
  5. INT: DIGIT+
  6. DECIMAL: INT ("." INT)?
  7. // float = /-?\d+(\.\d+)?([eE][+-]?\d+)?/
  8. FLOAT: "-"? DECIMAL (("e"|"E")("+"|"-")? INT)?
  9. //
  10. // Strings
  11. //
  12. ESCAPED_STRING: /".*?(?<!\\)"/
  13. //
  14. // Names (Variables)
  15. //
  16. LCASE_LETTER: "a".."z"
  17. UCASE_LETTER: "A".."Z"
  18. LETTER: UCASE_LETTER | LCASE_LETTER
  19. CNAME: ("_"|LETTER) ("_"|LETTER|DIGIT)*
  20. //
  21. // Whitespace
  22. //
  23. WS_INLINE: (" "|/\t/)+
  24. WS: /[ \t\f\r\n]/+