Skip to content

Commit 8827e84

Browse files
author
bluedrink9
committed
Enable initial r support
1 parent 25a838f commit 8827e84

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

packages/common/src/scopeSupportFacets/languageScopeSupport.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { luaScopeSupport } from "./lua";
1717
import { markdownScopeSupport } from "./markdown";
1818
import { phpScopeSupport } from "./php";
1919
import { pythonScopeSupport } from "./python";
20+
import { rScopeSupport } from "./r";
2021
import { rubyScopeSupport } from "./ruby";
2122
import { rustScopeSupport } from "./rust";
2223
import { scalaScopeSupport } from "./scala";
@@ -50,6 +51,7 @@ export const languageScopeSupport: StringRecord<LanguageScopeSupportFacetMap> =
5051
markdown: markdownScopeSupport,
5152
php: phpScopeSupport,
5253
python: pythonScopeSupport,
54+
r: rScopeSupport,
5355
ruby: rubyScopeSupport,
5456
rust: rustScopeSupport,
5557
scala: scalaScopeSupport,
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import type { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types";
2+
import { ScopeSupportFacetLevel } from "./scopeSupportFacets.types";
3+
4+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
5+
const { supported, unsupported, notApplicable } = ScopeSupportFacetLevel;
6+
7+
export const rScopeSupport: LanguageScopeSupportFacetMap = {
8+
};

queries/r.scm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
;; https://github.com/r-lib/tree-sitter-r/blob/main/src/grammar.json

0 commit comments

Comments
 (0)