diff --git a/README.md b/README.md index 7327eaf..12bb956 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,7 @@ Current language support with keyword blacklists: * Rust * Scala * TypeScript +* TypeScriptReact This can be customized locally by populating `g:semanticBlacklistOverride` like so: diff --git a/autoload/blacklist.vim b/autoload/blacklist.vim index 5cbfc94..6666888 100644 --- a/autoload/blacklist.vim +++ b/autoload/blacklist.vim @@ -110,6 +110,62 @@ let s:blacklist = { \ 'any', \ 'module', \ ], + \ 'typescriptreact': [ + \ 'Array', + \ 'Boolean', + \ 'Object', + \ 'any', + \ 'await', + \ 'boolean', + \ 'break', + \ 'case', + \ 'catch', + \ 'class', + \ 'const', + \ 'continue', + \ 'debugger', + \ 'default', + \ 'delete', + \ 'do', + \ 'else', + \ 'enum', + \ 'export', + \ 'extends', + \ 'false', + \ 'finally', + \ 'for', + \ 'function', + \ 'if', + \ 'implements', + \ 'import', + \ 'in', + \ 'instanceof', + \ 'interface', + \ 'let', + \ 'module', + \ 'new', + \ 'null', + \ 'number', + \ 'package', + \ 'private', + \ 'protected', + \ 'public', + \ 'return', + \ 'static', + \ 'string', + \ 'super', + \ 'switch', + \ 'this', + \ 'throw', + \ 'true', + \ 'try', + \ 'typeof', + \ 'var', + \ 'void', + \ 'while', + \ 'with', + \ 'JSON' + \ ], \ 'ruby': [ \ 'BEGIN', \ 'do',