Soar READMEThis is a VSCode extension adding language support for the Soar Cognitive Architecture. FeaturesSyntax highlighting for Soar/NGS! Get your syntax highlighting for CSoar and JSoar here! Buy now and get basic highlighting for SoarUnit. Call in the next twenty minutes and get highlighting for embedded Javascript ABSOLUTELY FREE. For non-syntax highlighting IDE supports, please also install the Soar Language Server extension. TCL HighlightingPure TCL code is better highlighted by a dedicated TCL extension, of which there are a few good options in the VSCode marketplace. Alternatively, you can configure VSCode to use Soar synatx highlighting on TCL source files. Through the UI, open a TCL file and run "Change Language Mode", select "Configure File Association for '.tcl'...", and select "Soar". This will add an override for all .tcl files opened in VSCode. Internally, VSCode adds the following setting to settings.json:
This setting can be configured in your global settings.json, in which case all .tcl files will treated as Soar. The same setting can be added to a workplace's .vscode/settings.json, which only modify the current workplace. Additionally, if your project mixes Soar-heavy and pure TCL files, the key *.tcl is a standard file path glob and be configured to match specific paths. For example RoadmapSee the trello board for full list of known defects and ideas for future features. Known IssuesSyntax highlighting drops a handlful of challenging valid constructs, and is overall more generous than the Soar are. Due to limitations in VSCode's grammar, syntax highlighting is loose on ordering; for example it will happily highlight Possible Future
Release Notes0.1.0Fixed several issues that have come up now that the new Soar Language Server is displacing the old Eclipse Soar IDE, in particular some corner Soar cases and highlight TCL loop flow control. 0.0.8Fix repository links (oops). 0.0.7Hightlight modern NGS constants and add several illegal character checks. 0.0.6Minor bug fix: widen the range of highlighted TCL proc names beyond simple alphanumerics. 0.0.5Added primitive highlighting of TCL proc and if blocks. Error highlight unexpected sp tokens in production bodies. Comments should more everywhereable. 0.0.4Improve WME attribute highlighting, don't break on more complex TCL code (recursive curly brackets), and a few minus fixes. 0.0.3SoarUnit support! One of the few things that's super trivial in Textmate style grammars! Better support for TCL string highlighting, in particular curly bracket strings. Still operates under the assumption TCL strings contain either plain text without any weirdness or has Soar code, and highlights accordingly. 0.0.2TCL and more complete Soar grammar! Hopefully the last major update TBH. 0.0.1Initial release. Syntax highlighting mostly functional. |