Reputation: 559
Does anyone know of a way to add new keywords (for syntax highlighting) to a language extension from the marketplace? Specifically I'm using the PL/SQL extension but it's missing some keywords I'd like to add (like BETWEEN, GREATEST, LEAST) without recreating the whole language extension myself. It was pretty easy to associate new file extensions with it but I haven't been able to find any documentation on adding keywords like you can in Notepad++ for example.
Is there documentation somewhere I missed?
Upvotes: 6
Views: 6655
Reputation: 45391
Add the keywords to the language's syntax file
Open the extension's folder
%USERPROFILE%\.vscode\extensions\casian.plsql-0.0.2
$HOME/.vscode/extensions/casian.plsql-0.0.2
Open the .tmLanguage
file
select
and from
..tmLanguage
file. Your changes will be overwritten when there is an update for the plugin.Upvotes: 9