Code Monkey home page Code Monkey logo

gothic-lexer's Introduction

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-daedalus

Regex patterns are partially based on:
https://github.com/kirides/vscode-daedalus/blob/master/syntaxes/daedalus.tmLanguage.json

Project 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

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:

# 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:

# CppLexer
pygmentize -l cpp -f html -o result_cpp.html -O full,debug_token_types .\example_file.d

gothic-lexer's People

Contributors

kamilkrzyskow avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.