Add the official CUE grammar repository cue-lang/vscode-cue as a
submodule, and CUE.sublime-syntax converted from its
extension/syntaxes/cue.tmLanguage.json at commit 16796709f36c:
1. Inline rules that only group other patterns, which Sublime Text's
converter rejects (cue-lang/cue#3427):
jq 'walk(if type == "object" and has("patterns") then .patterns |= [.[] | if type == "object" and keys == ["patterns"] then .patterns[] else . end] else . end)' \
extension/syntaxes/cue.tmLanguage.json > CUE.tmLanguage.json
2. Convert the JSON grammar to a plist:
python3 -c 'import json, plistlib, sys; plistlib.dump(json.load(sys.stdin), sys.stdout.buffer)' \
< CUE.tmLanguage.json > CUE.tmLanguage
3. Convert CUE.tmLanguage with Sublime Text's converter
("Tools → Developer → New Syntax from CUE.tmLanguage…").
The result reproduces all token goldens in vscode-cue's
extension/testdata/syntax with both the oniguruma and fancy-regex engines.
bat's Rust syntax highlighting patch (assets/patches/Rust.sublime-syntax.patch)
targets an older snapshot of sublimehq/Packages' Rust.sublime-syntax
(pinned submodule commit 759d6eed) whose keyword.control.rust match
only lists break|else|for|if|loop|match|while|continue. async and
await aren't included, so both render as plain text instead of
keywords.
Add async|await to that same alternation, matching the style already
used for the rest of the keyword list. Verified against the actual
pinned submodule content (fetched directly rather than the current
upstream HEAD, which has since restructured this section entirely)
that the patch context at line 139 matches exactly and applies
cleanly with `patch --strip=0`.
Adds a regression test case (async fn with chained .await calls) and
its expected highlighted output, generated to match bat's existing
Monokai Extended color scheme (keyword.control.rust colored the same
as the other control-flow keywords already in that list).
Closes gh-1534.
CI reported FileNotFoundError for Tcl/{tclsh,expect,wish}_shebang in
tests/syntax-tests/source/Tcl/. The highlighted files existed but the
source files had been omitted, so create_highlighted_versions.py had
nothing to read from.
Source files match the shebang regression test inputs at
tests/examples/regression_tests/issue_3647_*.
Resolves#3286
1. `lean4.json` → `lean4.tmLanguage`
1. Download `vscode-lean4/syntaxes/lean4.json` from https://github.com/leanprover/vscode-lean4/pull/623 (now merged).
2. Install the VS Code extension [TextMate Languages (pedro-w)](https://marketplace.visualstudio.com/items?itemName=pedro-w.tmlanguage).
3. Open `lean4.json` in VS Code, <kbd>F1</kbd>, and “Convert to tmLanguage PLIST File”.
2. `lean4.tmLanguage` → `lean4.sublime-syntax`
Open `lean4.tmLanguage` in Sublime text, “Tools → Developer → New Syntax from lean4.tmLanguage…”.
better auto-detection of CSV delimiter
- files with a tsv extension are automatically detected as tab delimited
- other files parsed as CSV go through the following steps:
- if the first line contains at least 3 of the same separator, it uses that separator as a delimiter
- if the first line contains only one supported separator character, it uses that separator as a delimiter
- otherwise it falls back to treating all supported delimiters as the delimiter
supported delimiters, in precedence order:
- comma `,`
- semi-colon `;`
- tab `\t`
- pipe `|`
This update includes an overhaul of scope names to better support the
set of themes included with bat.
You can find a visual diff for every theme in this PR:
https://github.com/victor-gp/cmd-help-sublime-syntax/pull/17
This commit updates the cmd-help syntax test because the scopes (-> colors)
have changed.
Add submodule with sublime syntax.
Add corresponding tests for both Ada (in adb/ads) and for the companion tool
gpr.
fixes#1300
Signed-off-by: Marc Poulhiès <dkm@kataplop.net>