Howto talk:Syntax highlighting for Nasal

From FlightGear wiki
Jump to: navigation, search

Pygments lexer for Nasal

Background at:

Nasal is close enough to ECMA/JavaScript so that we can take the JavaScript lexer in javascript.py class pygments.lexers.javascript.JavascriptLexer [1] and remove unnecessary stuff and other a few Nasal specific keywords/operators:


  1. https://fossies.org/dox/Pygments-2.1.1/classpygments_1_1lexers_1_1javascript_1_1JavascriptLexer.html