Skip to content

Commit 75d24e5

Browse files
authored
Merge pull request #63 from SSlinky/dev
Scopes reimplementation
2 parents 7e91dcd + 1ce199e commit 75d24e5

39 files changed

+2395
-1186
lines changed

.eslintignore

Lines changed: 0 additions & 6 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

.gitignore

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
#Out file is required by command
2-
#`npm run textMate`, so a placeholder is included in client/out to ensure `out`
3-
#folder is available
4-
**/out/*
5-
!client/out/*.tmp
6-
client/src/syntaxes/dev*
1+
# Generated files.
2+
dist/*
3+
**/antlr/*/
4+
*.vsix
5+
*.tsbuildinfo
6+
*.log
77

8-
.antlr
8+
# Resources
99
node_modules
10-
client/server
10+
sample*/**
1111
template*
12+
13+
# Workspace settings
1214
.vscode-test
13-
sample*/**
14-
*.vsix
15-
*.tsbuildinfo
16-
*.log
15+
.vscode/settings.json

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
],
1414
"preLaunchTask": {
1515
"type": "npm",
16-
"script": "compile"
16+
"script": "build"
1717
}
1818
},
1919
{

.vscode/settings.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

client/syntaxes/vba.tmLanguage.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@
498498
"repository": {
499499
"onErrorStatement": {
500500
"name": "meta.onErrorStatement.vba",
501-
"match": "(?i)\\b(on\\s+error)\\s+(?:(resume\\s+next)|(goto)\\s+([a-z0-9]+))",
501+
"match": "(?i)\\b(on\\s+error)\\s+(?:(resume\\s+next)|(goto)\\s+([a-z0-9_]+))",
502502
"captures": {
503503
"1": {
504504
"name": "keyword.control.flow.jump.vba"
@@ -549,7 +549,7 @@
549549
"include": "#literals"
550550
},
551551
{
552-
"match": "(?i)([a-z][a-z0-9]*)",
552+
"match": "(?i)([a-z][a-z0-9_]*)",
553553
"name": "variable.other.constant.label.vba"
554554
}
555555
]
@@ -819,7 +819,7 @@
819819
},
820820
"argumentSignatureFromParam": {
821821
"name": "meta.argument-signature.param.vba",
822-
"begin": "(?i)[a-z][a-z0-9]*(\\(\\))?",
822+
"begin": "(?i)[a-z][a-z0-9_]*(\\(\\))?",
823823
"end": "(?=[,):'\\n])",
824824
"beginCaptures": {
825825
"0": {

client/syntaxes/vba.tmLanguage.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ repository:
324324
repository:
325325
onErrorStatement:
326326
name: meta.onErrorStatement.vba
327-
match: (?i)\b(on\s+error)\s+(?:(resume\s+next)|(goto)\s+([a-z0-9]+))
327+
match: (?i)\b(on\s+error)\s+(?:(resume\s+next)|(goto)\s+([a-z0-9_]+))
328328
captures:
329329
1:
330330
name: keyword.control.flow.jump.vba
@@ -353,7 +353,7 @@ repository:
353353
patterns:
354354
- include: "#separator"
355355
- include: "#literals"
356-
- match: (?i)([a-z][a-z0-9]*)
356+
- match: (?i)([a-z][a-z0-9_]*)
357357
name: variable.other.constant.label.vba
358358
goToGoSubReturnStatement:
359359
name: meta.goToGoSubReturnStatement.vba
@@ -512,7 +512,7 @@ repository:
512512

513513
argumentSignatureFromParam:
514514
name: meta.argument-signature.param.vba
515-
begin: (?i)[a-z][a-z0-9]*(\(\))?
515+
begin: (?i)[a-z][a-z0-9_]*(\(\))?
516516
end: (?=[,):'\n])
517517
beginCaptures:
518518
0:

eslint.config.mjs

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
// // eslint.config.js
2+
// import js from '@eslint/js';
3+
// import ts from '@typescript-eslint/eslint-plugin';
4+
// import parser from '@typescript-eslint/parser';
5+
6+
// export default [
7+
// js.configs.recommended,
8+
// {
9+
// files: ['**/*.ts', '**/*.tsx'],
10+
// languageOptions: {
11+
// parser,
12+
// },
13+
// plugins: {
14+
// '@typescript-eslint': ts,
15+
// },
16+
// rules: {
17+
// semi: ['error', 'always'],
18+
// '@typescript-eslint/no-unused-vars': 'off',
19+
// '@typescript-eslint/no-explicit-any': 'off',
20+
// '@typescript-eslint/explicit-module-boundary-types': 'off',
21+
// '@typescript-eslint/no-non-null-assertion': 'off',
22+
// },
23+
// },
24+
// ];
25+
26+
// eslint.config.js
27+
import js from '@eslint/js';
28+
import tseslint from 'typescript-eslint';
29+
import parser from '@typescript-eslint/parser';
30+
31+
export default [
32+
js.configs.recommended,
33+
...tseslint.configs.recommended,
34+
{
35+
files: ['**/*.ts', '**/*.tsx'],
36+
languageOptions: {
37+
parser,
38+
parserOptions: {
39+
ecmaVersion: 'latest',
40+
sourceType: 'module',
41+
},
42+
},
43+
rules: {
44+
semi: ['error', 'always'],
45+
'@typescript-eslint/no-unused-vars': 'off',
46+
'@typescript-eslint/no-explicit-any': 'off',
47+
'@typescript-eslint/explicit-module-boundary-types': 'off',
48+
'@typescript-eslint/no-non-null-assertion': 'off',
49+
},
50+
},
51+
{
52+
ignores: [
53+
'node_modules/',
54+
'client/node_modules/',
55+
'client/out/',
56+
'server/node_modules/',
57+
'server/out/',
58+
'server/src/antlr/',
59+
],
60+
},
61+
];

0 commit comments

Comments
 (0)