Skip to content

Editing the Syntax Definition

guillermooo edited this page Jun 25, 2014 · 6 revisions

Getting Started

Follow these steps for the most convenient way of editing the Dart syntax definition:

Why? If you are interested in editing the Dart syntax definition in Sublime Text, you will most likely find it easier to first generate a more readable YAML file for editing, and then convert it back to Dart.tmLanguage.

Generating Dart.YAML-tmLanguage from Dart.tmLanguage

  1. Clone this repo on your local machine
  2. Open Dart.tmLanguage in Sublime Text
  3. Open the command palette (Ctrl+Shift+P)
  4. Select z:AAAPackageDev: Convert to YAML and Rearrange Syntax Definition

Converting Dart.YAML-tmLanguage to Dart.tmLanguage

  1. Refer to steps (1) and (2) in the previous section
  2. Open Dart.YAML-tmLanguage in Sublime Text
  3. Open the command palette (Ctrl+Shift+P)
  4. Select z:AAAPackageDev: Convert (YAML, JSON, PList) to...

Deleting Temporary Files

When you're done editing the syntax file, rembember to delete Dart.YAML-tmLanguage. Don't commit Dart.YAML-tmLanguage.

Clone this wiki locally