We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5eddf5b commit 29dc892Copy full SHA for 29dc892
runtime/syntax/ruby.yaml
@@ -21,6 +21,10 @@ rules:
21
- constant.number: "(?i)\\b0x[0-9a-fA-F][0-9a-f_]*\\b"
22
- constant.number: "(?i)\\b0b[01][01_]*\\b"
23
- constant.number: "(?i)\\b[0-9][0-9_]*(['.'][0-9_]+)?(e[\\-]?[0-9_]+)?\\b"
24
+ # Predefined global variables
25
+ - constant:
26
+ start: "[$]([!@&`'+~=/\\\\,;.<>*$?:\"_]|-[A-Za-z0-9_]|[0-9]+)"
27
+ end: "\\B|\\b"
28
# Ruby "Symbols"
29
- constant: "(i?)([ ]|^):[0-9A-Z_]+\\b"
30
- constant: "\\b(__FILE__|__LINE__)\\b"
0 commit comments