Kyogre Highlighter
Dead-simple TextMate syntax highlighter for Kyogre assembly (.asm), covering x86 (16/32/64-bit, SSE2–SSE4.1, AVX/AVX2/FMA3), AArch64 (GP, Scalar FP, NEON), struct/enum/contract/frame/region blocks, mechanical expansions, and scoped do … end extensions.
Supported IDEs
Built on a single canonical TextMate grammar (syntaxes/kyogre.tmLanguage.json) with a generated plist (syntaxes/kyogre.tmLanguage):
VS Code / Cursor / VSCodium / Windsurf (Primary)
Install from .vsix:
npm run package
code --install-extension kyogre-hl-0.1.0.vsix
Local dev symlink:
ln -s /path/to/kyogre-hl ~/.vscode/extensions/sharkk.kyogre-hl-0.1.0
Reload the window and open any .asm file.
JetBrains IDEs (CLion, IntelliJ IDEA, Rider, Fleet)
- Open Settings → Editor → TextMate Bundles.
- Click + and select the
kyogre-hl directory directly (JetBrains reads package.json and syntaxes/kyogre.tmLanguage.json).
Sublime Text / TextMate
Copy syntaxes/kyogre.tmLanguage into your user packages directory:
- Sublime Text (Linux):
~/.config/sublime-text/Packages/User/kyogre.tmLanguage
- Sublime Text (macOS):
~/Library/Application Support/Sublime Text/Packages/User/kyogre.tmLanguage
- Sublime Text (Windows):
%APPDATA%\Sublime Text\Packages\User\kyogre.tmLanguage
bat / Shiki / GitHub Linguist
Point bat or Shiki directly at syntaxes/kyogre.tmLanguage.json (scope source.kyogre).
Development & Packaging
# Regenerate syntaxes/kyogre.tmLanguage plist & validate manifest/grammar
go run scripts/gen.go
# Verify plist is in sync with syntaxes/kyogre.tmLanguage.json
go run scripts/gen.go --check
# Package a ready-to-distribute .vsix for VS Code / Open VSX
npm run package
Automated Publishing (Visual Studio Marketplace)
.github/workflows/publish.yml publishes via Visual Studio Marketplace Trusted Publishing (OIDC) — no PAT secret required.
One-Time Marketplace Policy Setup
- Open the Visual Studio Marketplace publisher management page for
sharkk.
- Go to Trusted Publishing → Create:
- Repository owner:
sharkkhq
- Repository:
kyogre-hl
- Workflow:
publish.yml
- Environment: (leave empty)
- Push a matching version tag (e.g.
git tag v0.1.0 && git push origin v0.1.0) or run Publish Extension manually from the Actions tab.
License
MIT