diff --git a/Makefile b/Makefile index 1ba35893..8fb0a688 100644 --- a/Makefile +++ b/Makefile @@ -7,4 +7,4 @@ install: syn-files syn-files: mkdir -p ~/.micro/syntax - ./runtime/install.sh + cp -r runtime ~/.micro diff --git a/runtime/syntax/README.md b/runtime/syntax/README.md index ba443f16..5d4b2cb7 100644 --- a/runtime/syntax/README.md +++ b/runtime/syntax/README.md @@ -1,9 +1,12 @@ # Micro syntax highlighting files These are the syntax highlighting files for micro. To install them, just -run `./install.sh` one directory up (`runtime/`) which will simply put all the syntax files in `~/.micro/syntax`. +put all the syntax files in `~/.micro/syntax`. They are taken from Nano, specifically from [this repository](https://github.com/scopatz/nanorc). Micro syntax files are almost identical to Nano's, except for some key differences: -* Micro does not use `icolor`. Instead, for a case insensitive match, use the case insensitive flag (`(i)`) in the regular expression +* Micro does not use `icolor`. Instead, for a case insensitive match, use the case insensitive flag (`i`) in the regular expression + * For example, `icolor green ".*"` would become `color green (i) ".*"` +* Micro does not support `start="..." end="..."`. Instead use the `s` flag to match newlines and put `.*?` in the middle + * For example `color green start="hello" end="world"` would become `color green (s) "hello.*?world"`