Apply our (very) basic syntax highlighting to .vim files (not just .vimrc)

Also change contributed language's name to "Vimscript", which I don't think should break anything
This commit is contained in:
Jason Fields 2023-10-24 21:52:27 -04:00
parent 966aa23d61
commit fc76d9aa6e
2 changed files with 8 additions and 7 deletions

View File

@ -1154,8 +1154,9 @@
},
"languages": [
{
"id": "vimrc",
"id": "Vimscript",
"extensions": [
".vim",
".vimrc"
],
"configuration": "./language-configuration.json"
@ -1163,9 +1164,9 @@
],
"grammars": [
{
"language": "vimrc",
"scopeName": "source.vimrc",
"path": "./syntaxes/vimrc.tmLanguage.json"
"language": "Vimscript",
"scopeName": "source.vimscript",
"path": "./syntaxes/vimscript.tmLanguage.json"
}
]
},

View File

@ -1,8 +1,8 @@
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "vimrc",
"fileTypes": [".vimrc"],
"scopeName": "source.vimrc",
"name": "Vimscript",
"fileTypes": [".vim", ".vimrc"],
"scopeName": "source.vimscript",
"patterns": [
{
"name": "comment.line",