π¦ language-eu4mod
is a global tree-sitter grammar for Europa Universalis IV.
This package is a global EU4 grammar powered by tree-sitter and developed for the βοΈAtom text editor.
It supports the various languages, from extensions listed below, found in EU4 files. As this grammar is focused on developers working on EU4 mods it provides a syntax-tree with scope mappings able to handle any language used in files inside EU4 directory. Mainly for modding purposes.
To install language-eu4mod
it's like any other Atom's package :
-
Simply in the Atom's settings :
settings > install
. -
From atom.io registry :
language-eu4mod
-
via CLI :
apm install language-eu4mod
Extension | Supported |
---|---|
.mod | β |
.gfx | β |
.gui | β |
.yml | β |
This package enable Atom's themes with syntax highlighting to catch syntax nodes by specifying scope mappings in a grammar definition file.
In Atom syntax highlighting is define with css
class. And this package map the syntax nodes to theses class fallowing grammar .cson
files directives. But the structure of theses tree-syntax nodes is define in the parser which is in the dependency package : tree-sitter-eu4mod
Link | Info |
---|---|
GitHub repository | |
Last release | |
All releases |
If you have any issue or find a bug please :
Open an issue on GitHub |
---|
- Creating a grammar (Atom flight manual)
- Tree Sitter (Docs)
tree-sitter-eu4mod
(Parser)
- EU4 definition :
- GUI/GFX Xyloz (eu4.paradoxwikis)
- Interface modding (eu4.paradoxwikis)
- Graphical asset modding (eu4.paradoxwikis)