Home

Awesome

igor-linguist-syntax

A syntax highlighting for Igor Pro using textmate language for github linguist

tmlanguage

Please respect the description of the valid grammar for textmate.

setup

notes

development

Development is done using sublime text editor 3.

For development using sublime as editor a color definition JSON is included in the file sublime_colordef.part.json. Add these colors to the color scheme that is setup in sublime. For the case of Neon-color-scheme the target file would be /Data/Packages/Neon Color Scheme/Neon.sublime-color-scheme.

integrate in VS Code

linguist

Updating the grammar

According to the pull request template of the linguist project updating the grammar is not required as grammar submodules are updated automatically with each new release. See linguist PR template

For updating it locally the add-grammar utility script from linguist can be used:

script/add-grammar --replace language-igor https://github.com/byte-physics/language-igor

Note that the script requires a working docker service or it aborts silently. If docker works can be checked with e.g. docker ps.

Getting linguist running locally

Getting linguist running locally is useful to run the tests.

Linguist is written in ruby and thus required the ruby package installed. For setting up all required ruby packages (gems) it brings a script

script/bootstrap

However, this needs some dependencies. First one needs bundler that is a ruby package:

gem install bundler

And it requires some more dependencies for building the gems from the bootstrap script. The linguist readme states for Ubuntu:

sudo apt-get install build-essential cmake pkg-config libicu-dev zlib1g-dev libcurl4-openssl-dev libssl-dev ruby-dev

Most likely more packages are needed on a basic linux install.

Run the tests with

bundle exec rake test

sources