@exercism/codemirror-lang-awk 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CODE_OF_CONDUCT.md +93 -0
- package/LICENSE +21 -0
- package/README.md +153 -2
- package/dist/completion.d.ts +5 -0
- package/dist/grammar.d.ts +11 -0
- package/dist/highlight.d.ts +7 -0
- package/dist/index.cjs +11 -0
- package/dist/index.d.ts +45 -0
- package/dist/index.js +852 -0
- package/dist/linter.d.ts +5 -0
- package/dist/theme.d.ts +9 -0
- package/dist/tokens.d.ts +27 -0
- package/package.json +54 -4
package/dist/linter.d.ts
ADDED
package/dist/theme.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Extension } from '@codemirror/state';
|
|
2
|
+
/**
|
|
3
|
+
* Built-in Modern Dark Visual Theme for GNU AWK Editor
|
|
4
|
+
*/
|
|
5
|
+
export declare const gawkDarkTheme: Extension;
|
|
6
|
+
/**
|
|
7
|
+
* Built-in Modern Light Visual Theme for GNU AWK Editor
|
|
8
|
+
*/
|
|
9
|
+
export declare const gawkLightTheme: Extension;
|
package/dist/tokens.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface FunctionDoc {
|
|
2
|
+
name: string;
|
|
3
|
+
signature: string;
|
|
4
|
+
detail: string;
|
|
5
|
+
doc: string;
|
|
6
|
+
type: 'math' | 'string' | 'time' | 'bitwise' | 'io' | 'gawk';
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Standard AWK and GNU AWK Pattern Blocks
|
|
10
|
+
*/
|
|
11
|
+
export declare const GAWK_PATTERNS: Set<string>;
|
|
12
|
+
/**
|
|
13
|
+
* AWK and GNU AWK Control Flow Keywords
|
|
14
|
+
*/
|
|
15
|
+
export declare const GAWK_KEYWORDS: Set<string>;
|
|
16
|
+
/**
|
|
17
|
+
* GNU AWK Specific Directives
|
|
18
|
+
*/
|
|
19
|
+
export declare const GAWK_DIRECTIVES: Set<string>;
|
|
20
|
+
/**
|
|
21
|
+
* Standard AWK & GNU AWK Built-in Special Variables
|
|
22
|
+
*/
|
|
23
|
+
export declare const GAWK_BUILTIN_VARS: Set<string>;
|
|
24
|
+
/**
|
|
25
|
+
* Built-in Functions dictionary with rich completion documentation
|
|
26
|
+
*/
|
|
27
|
+
export declare const GAWK_BUILTIN_FUNCTIONS: Record<string, FunctionDoc>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,56 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exercism/codemirror-lang-awk",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "CodeMirror 6 plugin and language support for GNU AWK",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Glenn Jackman",
|
|
7
|
+
"email": "glenn.jackman@gmail.com"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/exercism/codemirror-lang-awk.git"
|
|
12
|
+
},
|
|
13
|
+
"type": "module",
|
|
14
|
+
"main": "./dist/index.cjs",
|
|
15
|
+
"module": "./dist/index.js",
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"import": "./dist/index.js",
|
|
20
|
+
"require": "./dist/index.cjs",
|
|
21
|
+
"types": "./dist/index.d.ts"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"dev": "vite",
|
|
26
|
+
"build": "tsc && vite build && tsc -p tsconfig.build.json",
|
|
27
|
+
"preview": "vite preview",
|
|
28
|
+
"test": "tsc --noEmit"
|
|
29
|
+
},
|
|
30
|
+
"keywords": [
|
|
31
|
+
"codemirror",
|
|
32
|
+
"codemirror-6",
|
|
33
|
+
"awk",
|
|
34
|
+
"gawk",
|
|
35
|
+
"gnu-awk",
|
|
36
|
+
"syntax-highlighting",
|
|
37
|
+
"editor"
|
|
38
|
+
],
|
|
39
|
+
"license": "MIT",
|
|
40
|
+
"publishConfig": {
|
|
41
|
+
"access": "public"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@codemirror/autocomplete": "^6.18.0",
|
|
45
|
+
"@codemirror/language": "^6.10.1",
|
|
46
|
+
"@codemirror/lint": "^6.8.0",
|
|
47
|
+
"@codemirror/state": "^6.4.0",
|
|
48
|
+
"@codemirror/view": "^6.33.0",
|
|
49
|
+
"@lezer/highlight": "^1.2.0",
|
|
50
|
+
"codemirror": "^6.0.1"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"typescript": "^5.5.4",
|
|
54
|
+
"vite": "^5.4.0"
|
|
55
|
+
}
|
|
56
|
+
}
|