Skip to content

Commit 536832e

Browse files
committed
Adding syntax highlighting for R
Signed-off-by: Elijah Cúchulainn Reid <[email protected]>
1 parent 4036233 commit 536832e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

syntaxes/sas.tmLanguage.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,31 @@
7676
}
7777
]
7878
},
79+
{
80+
"begin": "(?i)proc(\\s|/\\*.*?\\*/)*rlang",
81+
"end": "(?i)(?=(run|quit)(\\s|/\\*.*?\\*/)*;|(data|proc|%macro)\\b[^;]*;)",
82+
"name": "sas.proc.rlang",
83+
"patterns": [
84+
{
85+
"include": "#strings-or-comments"
86+
},
87+
{
88+
"begin": "(?i)(?<=\\bsubmit|\\binteractive|\\bi)(\\s|/\\*.*?\\*/)*;",
89+
"end": "(?i)(endsubmit|endinteractive)(\\s|/\\*.*?\\*/)*;",
90+
"name": "source.r",
91+
"beginCaptures": {
92+
"0": {
93+
"name": "strange_bug"
94+
}
95+
},
96+
"patterns": [
97+
{
98+
"include": "source.r"
99+
}
100+
]
101+
}
102+
]
103+
},
79104
{
80105
"begin": "(?i)data\\b.*?;",
81106
"end": "(?i)(?=(run|quit)(\\s|/\\*.*?\\*/)*;|(data|proc|%macro)\\b[^;]*;)",

0 commit comments

Comments
 (0)