The BOS Language Support Extension provides syntax highlighting, validation, and diagnostics for .bos files used in Beyond All Reason.
- Syntax Highlighting: Highlights
.bossyntax to improve code readability. - Real-Time Validation: Automatically checks for syntax errors and provides detailed feedback while you type.
- Workspace File Watcher: Monitors all
.bosfiles within your workspace and validates them on-the-fly. - File icons: Adds custom file icons for
.bosand.cobfiles to make them prettier in your sidebar.
- Install the extension from the VSCode Marketplace (or manually install it from a
.vsixfile). - Open any folder containing
.bosfiles, and the extension will automatically start validating them. - Errors will be displayed in the Problems panel, and tooltips will appear when you hover over problematic code.
- Open any
.bosfile in your project, and the extension will automatically provide:- Syntax highlighting
- Real-time diagnostics
- Check the Problems panel in VSCode to view any parsing or lexer errors with detailed descriptions and locations.
- Fix errors by following the suggestions provided by the extension.
Check out the BAR script compiler repository, download it and follow the instructions in the Setup for VSCode section to compile BOS files using VSCode.
- Load files that are included in the
.bosby#include. - Improve the grammar file to handle multiline
#define. - Add support for auto-completion of
.boskeywords and functions. - Implement refactoring tools for
.bosfiles. - Add more custom error messages that are more meaningful than the default ones.
- Add syntax highlighting for constant throughout the file.
If you encounter bugs or want to contribute to the extension, feel free to open an issue or submit a pull request on the GitHub repository.