Salesforce Apex Language Grammar
Introduction
This repository contains the source code for generating the language grammar files for Salesforce's Apex.
Disclaimer
Development and setup of this project has not been tested for Windows OS. You may see a node-gyp error - follow the instrutions here to resolve it.
Development
To build and test install Node.js do the following:
- Run
npm install
to install any dependencies. - Run
gulp
to build and run tests.
Output grammars are output in the grammars\
dirctory.
Adding grammar rules
Token structure is based off of Textmate's Language Grammar guidelines
Supported outputs
grammars\apex.tmLanguage.cson
- for Atomgrammars\apex.tmLanguage
- TextMate grammar (XML plist)
Releasing
Tags on this repo get automatically published as a GitHub release and an NPM package through Travis CI.
Attribution
This repository was copied from https://github.com/dotnet/csharp-tmLanguage