micro/runtime/syntax
Zachary Yedidia cf2db5dfe7 Add R syntax file
Closes #91
2016-05-02 15:01:46 -04:00
..
apacheconf.micro Add cross-compilation script 2016-03-22 18:17:11 -04:00
arduino.micro Update syntax files 2016-03-25 16:41:36 -04:00
asciidoc.micro Add cross-compilation script 2016-03-22 18:17:11 -04:00
asm.micro Update syntax files 2016-03-25 16:41:36 -04:00
awk.micro Update syntax files 2016-03-25 16:41:36 -04:00
c.micro Update syntax files 2016-03-25 16:41:36 -04:00
cmake.micro Update syntax files 2016-03-25 16:41:36 -04:00
coffeescript.micro Update syntax files 2016-03-25 16:41:36 -04:00
colortest.micro Update syntax files 2016-03-25 16:41:36 -04:00
conf.micro Update syntax files 2016-03-25 16:41:36 -04:00
conky.micro Update syntax files 2016-03-25 16:41:36 -04:00
csharp.micro Update syntax files 2016-03-25 16:41:36 -04:00
css.micro Update syntax files 2016-03-25 16:41:36 -04:00
cython.micro Update syntax files 2016-03-25 16:41:36 -04:00
d.micro Update syntax files 2016-03-25 16:41:36 -04:00
Dockerfile.micro Update syntax files 2016-03-25 16:41:36 -04:00
dot.micro Update syntax files 2016-03-25 16:41:36 -04:00
erb.micro Update syntax files 2016-03-25 16:41:36 -04:00
fish.micro Update syntax files 2016-03-25 16:41:36 -04:00
fortran.micro Update syntax files 2016-03-25 16:41:36 -04:00
gentoo-ebuild.micro Major optimization for loading syntax files 2016-04-18 14:40:07 -04:00
gentoo-etc-portage.micro Major optimization for loading syntax files 2016-04-18 14:40:07 -04:00
git-commit.micro Major optimization for loading syntax files 2016-04-18 14:40:07 -04:00
git-config.micro Major optimization for loading syntax files 2016-04-18 14:40:07 -04:00
git-rebase-todo.micro Major optimization for loading syntax files 2016-04-18 14:40:07 -04:00
glsl.micro Update syntax files 2016-03-25 16:41:36 -04:00
go.micro Add automatic settings to ~/.micro/settings.json 2016-03-28 21:10:10 -04:00
groff.micro Update syntax files 2016-03-25 16:41:36 -04:00
haml.micro Update syntax files 2016-03-25 16:41:36 -04:00
haskell.micro Update syntax files 2016-03-25 16:41:36 -04:00
html.micro Update syntax files 2016-03-25 16:41:36 -04:00
ini.micro Update syntax files 2016-03-25 16:41:36 -04:00
inputrc.micro Update syntax files 2016-03-25 16:41:36 -04:00
java.micro Update syntax files 2016-03-25 16:41:36 -04:00
javascript.micro Add cross-compilation script 2016-03-22 18:17:11 -04:00
json.micro Update syntax files 2016-03-25 16:41:36 -04:00
keymap.micro Update syntax files 2016-03-25 16:41:36 -04:00
kickstart.micro Update syntax files 2016-03-25 16:41:36 -04:00
ledger.micro Add cross-compilation script 2016-03-22 18:17:11 -04:00
LICENSE Update syntax files 2016-04-08 09:22:36 -04:00
lisp.micro Update syntax files 2016-03-25 16:41:36 -04:00
lua.micro Update syntax files 2016-03-25 16:41:36 -04:00
makefile.micro Update syntax files 2016-03-25 16:41:36 -04:00
man.micro Add cross-compilation script 2016-03-22 18:17:11 -04:00
markdown.micro Update syntax files 2016-03-25 16:41:36 -04:00
mpdconf.micro Update syntax files 2016-03-25 16:41:36 -04:00
nanorc.micro Update syntax files 2016-03-25 16:41:36 -04:00
nginx.micro Update syntax files 2016-03-25 16:41:36 -04:00
ocaml.micro Update syntax files 2016-03-25 16:41:36 -04:00
patch.micro Add cross-compilation script 2016-03-22 18:17:11 -04:00
peg.micro Add cross-compilation script 2016-03-22 18:17:11 -04:00
perl.micro Update syntax files 2016-03-25 16:41:36 -04:00
perl6.micro Update syntax files 2016-03-25 16:41:36 -04:00
php.micro Update syntax files 2016-03-25 16:41:36 -04:00
pkg-config.micro Add cross-compilation script 2016-03-22 18:17:11 -04:00
pkgbuild.micro Update syntax files 2016-03-25 16:41:36 -04:00
po.micro Update syntax files 2016-03-25 16:41:36 -04:00
pov.micro Update syntax files 2016-03-25 16:41:36 -04:00
privoxy-action.micro Major optimization for loading syntax files 2016-04-18 14:40:07 -04:00
privoxy-config.micro Major optimization for loading syntax files 2016-04-18 14:40:07 -04:00
privoxy-filter.micro Major optimization for loading syntax files 2016-04-18 14:40:07 -04:00
puppet.micro Update syntax files 2016-03-25 16:41:36 -04:00
python.micro Update syntax files 2016-03-25 16:41:36 -04:00
r.micro Add R syntax file 2016-05-02 15:01:46 -04:00
README.md Update readme 2016-04-18 14:04:42 -04:00
reST.micro Update syntax files 2016-03-25 16:41:36 -04:00
rpmspec.micro Update syntax files 2016-03-25 16:41:36 -04:00
ruby.micro Update syntax files 2016-03-25 16:41:36 -04:00
rust.micro Update syntax files 2016-03-25 16:41:36 -04:00
scala.micro Update syntax files 2016-03-25 16:41:36 -04:00
sed.micro Add cross-compilation script 2016-03-22 18:17:11 -04:00
sh.micro Add cross-compilation script 2016-03-22 18:17:11 -04:00
sls.micro Update syntax files 2016-03-25 16:41:36 -04:00
sql.micro Update syntax files 2016-03-25 16:41:36 -04:00
swift.micro Update syntax files 2016-03-25 16:41:36 -04:00
systemd.micro Update syntax files 2016-03-25 16:41:36 -04:00
tcl.micro Update syntax files 2016-03-25 16:41:36 -04:00
tex.micro Update syntax files 2016-03-25 16:41:36 -04:00
vala.micro Update syntax files 2016-03-25 16:41:36 -04:00
vi.micro Add cross-compilation script 2016-03-22 18:17:11 -04:00
xml.micro Update syntax files 2016-03-25 16:41:36 -04:00
xresources.micro Update syntax files 2016-03-25 16:41:36 -04:00
yaml.micro Update syntax files 2016-03-25 16:41:36 -04:00
yum.micro Add cross-compilation script 2016-03-22 18:17:11 -04:00
zsh.micro Update syntax files 2016-03-25 16:41:36 -04:00

Micro syntax highlighting files

These are the syntax highlighting files for micro. To install them, just put all the syntax files in ~/.config/micro/syntax.

They are taken from Nano, specifically from this repository. 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
    • 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"

Using with colorschemes

Not all of these files have been converted to use micro's colorscheme feature. Most of them just hardcode the colors, which can be problematic depending on the colorscheme you use.

Here is a list of the files that have been converted to properly use colorschemes:

  • vi
  • go
  • c
  • d
  • markdown
  • html
  • lua
  • swift
  • rust
  • java
  • javascript
  • python
  • ruby
  • sh
  • git

License

Because the nano syntax files I have modified are distributed under the GNU GPLv3 license, these files are also distributed under that license. See LICENSE.