Skip to content

Commit

Permalink
update R# syntax supports
Browse files Browse the repository at this point in the history
  • Loading branch information
xieguigang committed Nov 11, 2024
1 parent bc8b7c7 commit e152bfc
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/Editor/vscode/min/vs/basic-languages/r/r.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,17 @@ define("vs/basic-languages/r/r", ["require"], (require) => {
{ open: "{", close: "}" },
{ open: "[", close: "]" },
{ open: "(", close: ")" },
{ open: '"', close: '"' }
{ open: '"', close: '"' },
{ open: "'", close: "'" },
{ open: '`', close: '`' },
],
surroundingPairs: [
{ open: "{", close: "}" },
{ open: "[", close: "]" },
{ open: "(", close: ")" },
{ open: '"', close: '"' }
{ open: '"', close: '"' },
{ open: "'", close: "'" },
{ open: '`', close: '`' },
]
};
var language = {
Expand Down Expand Up @@ -116,7 +120,9 @@ define("vs/basic-languages/r/r", ["require"], (require) => {
"@title",
"@TODO",
"@usage",
"@useDynLib"
"@useDynLib",
"@config",
"@info"
],
constants: [
"NULL",
Expand Down Expand Up @@ -196,7 +202,7 @@ define("vs/basic-languages/r/r", ["require"], (require) => {
[/[,:;]/, "delimiter"],
[/@[a-zA-Z]\w*/, "tag"],
[
/[a-zA-Z]\w*/,
/[._a-zA-Z][a-zA-Z0-9_.]*/,
{
cases: {
"@keywords": "keyword",
Expand Down

0 comments on commit e152bfc

Please sign in to comment.