Skip to content

Commit cba78f3

Browse files
sebaldLeaVerou
authored andcommitted
Add missing from keyword to typescript & set ts as alias. (#1042)
1 parent 32cd99f commit cba78f3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

components/prism-typescript.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
Prism.languages.typescript = Prism.languages.extend('javascript', {
2-
'keyword': /\b(break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|function|get|if|implements|import|in|instanceof|interface|let|new|null|package|private|protected|public|return|set|static|super|switch|this|throw|true|try|typeof|var|void|while|with|yield|module|declare|constructor|string|Function|any|number|boolean|Array|enum)\b/
2+
'keyword': /\b(break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|package|private|protected|public|return|set|static|super|switch|this|throw|true|try|typeof|var|void|while|with|yield|module|declare|constructor|string|Function|any|number|boolean|Array|enum)\b/
33
});
4+
5+
Prism.languages.ts = Prism.languages.typescript;

components/prism-typescript.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)