https://github.com/kamilkrzyskow/gothic-lexer
Pygments lexer for the Daedalus scripting language used in Piranha Bytes Gothic series.
https://github.com/kamilkrzyskow/gothic-lexer
gmc gothic gothic1 gothic2 modding-gothic pygments pygments-lexer
Last synced: 22 days ago
JSON representation
Pygments lexer for the Daedalus scripting language used in Piranha Bytes Gothic series.
- Host: GitHub
- URL: https://github.com/kamilkrzyskow/gothic-lexer
- Owner: kamilkrzyskow
- Created: 2022-10-14T16:09:40.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-07T23:02:30.000Z (about 2 years ago)
- Last Synced: 2025-04-06T11:51:43.008Z (about 2 months ago)
- Topics: gmc, gothic, gothic1, gothic2, modding-gothic, pygments, pygments-lexer
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pygments lexer for Gothic scripts
## Intro
Pygments lexer for Daedalus, from Piranha Bytes Gothic 1, 2, Addon games.
It was made to be used primarily in the https://github.com/auronen/gmc/ project to highlight code examples.
To highlight code during development and get suggestions better use https://github.com/kirides/vscode-daedalusRegex patterns are partially based on:
https://github.com/kirides/vscode-daedalus/blob/master/syntaxes/daedalus.tmLanguage.jsonProject structure and setup partially based on:
https://github.com/fcurella/jsx-lexer
https://github.com/testdrivenio/vue-lexer
https://github.com/tremor-rs/tremor-mkdocs-lexer## Installation
```shell
pip install git+https://github.com/kamilkrzyskow/gothic-lexer.git
```## Commands
To create an example html file with the lexers, use the commands below inside the `gothic_lexer` directory:
```shell
# DaedalusLexer
pygmentize -l daedalus.py:DaedalusLexer -x -f html -o result_dae.html -O full,debug_token_types .\example_file.d
```Compare with the `cpp` lexer:
```shell
# CppLexer
pygmentize -l cpp -f html -o result_cpp.html -O full,debug_token_types .\example_file.d
```