B2 Jam language support for Sublime Text
- Total 0
- Win 0
- Mac 0
- Linux 0
|Nov 28||Nov 27||Nov 26||Nov 25||Nov 24||Nov 23||Nov 22||Nov 21||Nov 20||Nov 19||Nov 18||Nov 17||Nov 16||Nov 15||Nov 14||Nov 13||Nov 12||Nov 11||Nov 10||Nov 9||Nov 8||Nov 7||Nov 6||Nov 5||Nov 4||Nov 3||Nov 2||Nov 1||Oct 31||Oct 30||Oct 29||Oct 28||Oct 27||Oct 26||Oct 25||Oct 24||Oct 23||Oct 22||Oct 21||Oct 20||Oct 19||Oct 18||Oct 17||Oct 16||Oct 15|
B2 Jam Language Support
This Sublime Text package provides syntax highlighting and editing support for Jam language files – typically named
Complete Syntax Highlighting
100% coverage of core language features. Takes advantage of Sublime Text 4's non-deterministic grammar, lazy embedding, and syntax inheritance features to give accurate and precise semantic markup. As such, the syntax highlighting can function much like a lint tool.
Native Symbol Indexing support
Labels identifiers, variables, classes, rules (functions), which populates Sublime's symbol index, enabling tab-completions, suggestions, and other features.
Builtin Language symbols for rules, features, and expansion modifiers.
Glob and Regex pattern highlighting
Embedded Shell Script highlighting for
Builtin Library Support
Though not strictly part of the core language, in practice most users will be using the standard library to build C++ projects. As such, this package also contains support for the core build commands and features.
Jam requires white-space around all symbols – unlike most other languages, which allow symbols to be token boundaries. This syntax highlighter will help you spot problems caused by missing white-space.
Additionally, this package contains keymappings that auto-pair braces, brackets, and parenthesis with white-space, in hopefully intuitive ways.
Sublime Text 4
Built and tested with build: 4152
Clone this repo into your Sublime
Packagesdirectory, and name it
I wanted to get to know Sublime Text better, and figured one great way to learn about it was to develop a syntax highlighter for it. I saw that there wasn't support for the B2 / Boost Jam language, and as it is a language that I'm familar with, I went to work. Having built language parsers in the past, I quickly got into the weeds. I realize in hindsight that my approach here was probably too meticulous. The upside is that it can detect mal-formed syntax and inform the user in such cases, which is quite useful!
Many years ago, I wrote Boost.Build.XModule a B2 Jam library to download and build third-party dependencies in the B2 build environment. Much like the
FetchContent modules in CMake. I wish I had this package at the time!