diff --git a/README.md b/README.md index 8378105c5..e81821007 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,8 @@ How to get it/build it - Or, if you want/need a bleeding edge development version, you can: - download a build artifact zipfile from a recent [github action build](https://github.com/irmen/prog8/actions). - you can also compile it yourself from source. [Instructions here](https://prog8.readthedocs.io/en/latest/compiling.html). +- Alternatively, you can also install the compiler as a package on some linux distros: + - Arch (via AUR): [`prog8`](https://aur.archlinux.org/packages/prog8) Community --------- diff --git a/docs/source/compiling.rst b/docs/source/compiling.rst index df41cc83d..9bfc0306b 100644 --- a/docs/source/compiling.rst +++ b/docs/source/compiling.rst @@ -16,6 +16,17 @@ Then you can choose a few ways to get a compiler: #. download a recent "fat-jar" (called something like "prog8compiler-all.jar") from `the releases on Github `_ #. run the compiler with "java -jar prog8compiler.jar" to see how you can use it (use the correct name and version of the jar file you've downloaded). +**Or, install via a Package Manager:** + +Currently, it's only available on `AUR `_ for Arch and compatible systems. +The package's called ```prog8`` `_. + +This package, alongside the compiler itself, also globally installs syntax highlighting for ``vim`` and ``nano``. +In order to run compiler, you can type either ``p8compile`` or ``prog8c``. The usage of those commands is exatcly the same as with ``java -jar`` method. + +In case you prefer to install AUR packages in a traditional manner, make sure to install ```tass64`` package `_ +before installing prog8, as ```makepkg`` `_ itself doesn't fetch AUR dependencies. + **Or, download a bleeding edge development version from Github:** #. find the latest CI build on `the actions page on Github `_ diff --git a/syntax-files/nano/prog8.nanorc b/syntax-files/nano/prog8.nanorc index 5b1b4d7ee..a09f8ece8 100644 --- a/syntax-files/nano/prog8.nanorc +++ b/syntax-files/nano/prog8.nanorc @@ -8,7 +8,7 @@ syntax prog8 "\.p8$" comment ";" # Index thing and Array literals -##color teal "\[[^]]*\]" ## nword +##color teal "\[[^]]*\]" color teal "\]" color teal "\[" @@ -46,7 +46,7 @@ color lagoon "->" color cyan "[[:alnum:]_]+:["']" # char literal -color brightcyan "'([^\\]|\\([^ux]|u[0-9A-Fa-f]{4}|x[[:alnum:]]{2}))'" +color brightcyan "'([^\\]|\\([^ux]|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{2}))'" # %asm handling color normal start="%[Aa][Ss][Mm]" end="}}"