/pyg-arturo

A Pygments' extension to Arturo Language

Primary LanguagePython

Pygments Extension to Arturo Language

This work is in current progress

Testing Lexer

Using poetry

$ git clone https://github.com/RickBarretto/pyg-arturo
$ poetry install
$ poetry shell
# Outputs on terminal
$ poetry run pygmentize -x -l arturo.py:ArturoLexer test.art
# Outputs a html
$ poetry run pygmentize -x -f html -O full -O debug_token_types -o test.html -l arturo.py:ArturoLexer test.art

Using pipx

$ pip install --user pipx
$ pipx ensurepath
$ pipx completions
$ git clone https://github.com/RickBarretto/pyg-arturo
$ pipx install Pygments
# Outputs on terminal
$ pygmentize -x -l arturo.py:ArturoLexer test.art
# Outputs a html
$ pygmentize -x -f html -O full -O debug_token_types -o test.html -l arturo.py:ArturoLexer test.art

TODO

  • Attributes
  • Bool
  • Builtin
    • Functions
    • Predicate
  • Chars
  • Comments
  • Hashbang
  • Literal
  • Numbers
    • Float
    • Integer
  • Operators
  • Label
  • Literal
  • Sugar Syntax
  • Strings
    • Annotated Strings (Sub-languages)
    • Curly
      • Interpolation
      • Curly-Verbatin
    • End of File strings
      • Interpolation
    • Regex
      • Add regex sub-language
    • Safe Strings
      • Interpolation
    • Simple Strings
      • Interpolation
    • Smart Strings
      • Interpolation
    • Templates
      • Interpolation
  • Type