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.
Simply in the Atom's settings :
settings > install.
via CLI :
apm install language-eu4mod
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 :
If you have any issue or find a bug please :
|Open an issue on GitHub|
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.