Implement custom language support into Visual Studio for the esoteric language 'Ook!'.
- Technologies: Visual Studio 2015 SDK
- Topics: Visual Studio Editor, VSX
Description
This sample implements_Ook!_, an esoteric example language consisting of three valid tokens separated by spaces: Ook!, Ook?, and Ook.
The Ook! language supports the following features:
- General purpose token tagger
- A classification tagger
- A QuickInfo source and controller
- A completion source and controller
Requirements
Get all samples
Clone the repo (How to):
git clone https://github.com/Microsoft/VSSDK-Extensibility-Samples.git
Run the sample
- To run the sample, hit F5 or choose the Debug > Start Debugging menu command. A new instance of Visual Studio will launch under the experimental hive.
- Once loaded, open a file with the .ook filename extension. This sample includes an example .ook file: test.ook
- Instances of "Ook!" are colored Purple
- Instances of "Ook?" are colored Green
- Instances of "Ook." are colored Yellow
- Test Completion: Click anywhere in the file and press Space. An auto-complete dialog should appear at the location of the text caret
- Test QuickInfo: Position the mouse cursor over a valid token. Text appears in a grey box describing the purpose of the token.
Notes
This example was used during the Visual Studio Ecosystem Summit Presentation "Getting Linguistic: Integrating a Language into Visual Studio" by Chris Granger. The video can be found here.
Related topics