summaryrefslogtreecommitdiff
path: root/keywords.py
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-27 14:39:01 -0500
committerpommicket <pommicket@gmail.com>2022-12-27 14:39:01 -0500
commitc9907c20599728286e73115d11b46b169d10e1a3 (patch)
treeb1a287d830d8ee7e013e519df9b082485af1082c /keywords.py
parenta11545e25cf2f65047158cc1fd7ed5a0f11a9fa0 (diff)
add typescript highlighting
Diffstat (limited to 'keywords.py')
-rwxr-xr-xkeywords.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/keywords.py b/keywords.py
index 1e345d9..880cf09 100755
--- a/keywords.py
+++ b/keywords.py
@@ -296,6 +296,18 @@ keywords_java = [
'const', 'float', 'native', 'super', 'volatile', 'while'
]
+keywords_typescript = keywords_javascript + [
+ 'public', 'any', 'as', 'module',
+ 'static', 'interface', 'enum', 'type',
+ 'implements', 'private', 'package'
+]
+
+builtins_typescript = builtins_javascript + [
+ 'string', 'number', 'get', 'set'
+]
+
+constants_typescript = constants_javascript
+
constants_java = [
'true', 'false', 'null'
]
@@ -347,6 +359,8 @@ output_keywords(file, cpp_things, 'cpp')
output_keywords(file, label(keywords_rust, SYNTAX_KEYWORD) + label(builtins_rust, SYNTAX_BUILTIN) + label(constants_rust, SYNTAX_CONSTANT), 'rust')
output_keywords(file, label(keywords_javascript, SYNTAX_KEYWORD) + label(builtins_javascript, SYNTAX_BUILTIN) +
label(constants_javascript, SYNTAX_CONSTANT), 'javascript')
+output_keywords(file, label(keywords_typescript, SYNTAX_KEYWORD) + label(builtins_typescript, SYNTAX_BUILTIN) +
+ label(constants_typescript, SYNTAX_CONSTANT), 'typescript')
output_keywords(file, label(keywords_go, SYNTAX_KEYWORD) + label(builtins_go, SYNTAX_BUILTIN) +
label(constants_go, SYNTAX_CONSTANT), 'go')
output_keywords(file, label(keywords_java, SYNTAX_KEYWORD) + label(constants_java, SYNTAX_CONSTANT), 'java')