You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3c0fcff
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -299,7 +299,9 @@ Languages let Lithe recognize a language: identify its files, highlight them wit
299
299
The rules for `id`, `fileExtensions`, `fileNames`, `projectFileNames`, and `dependencies` are in [the contract's Languages section](../../contract/v1/README.md#languages). A grammar and editor configuration are pure data: the host reads them from the package and the editor applies them without starting any process. A plugin with only grammars needs no language server, backend, or activation event.
300
300
301
301
Extensionless scripts can declare a shebang as a root-level `firstLineMatch`
302
-
Rust regex in the packaged TextMate grammar. Keep `languages: 0` so older
302
+
Rust regex in the packaged TextMate grammar. To inherit the editor's
303
+
highlighting, put the field in `grammars/<language-id>.first-line.json` and omit
304
+
the grammar declaration. Keep `languages: 0` so older
303
305
hosts can install the same package and ignore the hint. Existing file
304
306
associations take priority. The editor checks a complete first line of up to
305
307
1024 UTF-8 bytes. See [first-line matching](../../contract/v1/README.md#first-line-matching).
0 commit comments