diff --git a/internal/cmd/gen-syntax/defs.go b/internal/cmd/gen-syntax/defs.go index fc0e62e..18037e0 100644 --- a/internal/cmd/gen-syntax/defs.go +++ b/internal/cmd/gen-syntax/defs.go @@ -6,14 +6,16 @@ import ( ) var root = struct { - Schema string `json:"$schema"` - Name string `json:"name"` - ScopeName string `json:"scopeName"` - Patterns Rules `json:"patterns"` - Repository RuleMap `json:"repository"` + Schema string `json:"$schema"` + Name string `json:"name"` + FileTypes []string `json:"fileTypes"` + ScopeName string `json:"scopeName"` + Patterns Rules `json:"patterns"` + Repository RuleMap `json:"repository"` }{ Schema: "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json", Name: "CUE", + FileTypes: []string{"cue"}, ScopeName: "source.cue", Patterns: patterns, Repository: repository, diff --git a/syntaxes/cue.tmLanguage.json b/syntaxes/cue.tmLanguage.json index e9a0014..b5c72cf 100644 --- a/syntaxes/cue.tmLanguage.json +++ b/syntaxes/cue.tmLanguage.json @@ -1,6 +1,9 @@ { "$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json", "name": "CUE", + "fileTypes": [ + "cue" + ], "scopeName": "source.cue", "patterns": [ {