micro/runtime/syntax
2017-03-26 18:58:08 -04:00
..
apacheconf.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
arduino.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
asciidoc.yaml Improve new syntax files and fix a region glitch 2017-03-21 15:07:39 -04:00
asm.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
awk.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
c++.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
c.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
caddyfile.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
clojure.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
cmake.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
coffeescript.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
colortest.yaml Improve new syntax files and fix a region glitch 2017-03-21 15:07:39 -04:00
conf.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
conky.yaml Improve new syntax files and fix a region glitch 2017-03-21 15:07:39 -04:00
cpp.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
crystal.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
csharp.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
css.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
cython.yaml Fix precedence for python multi-comments 2017-03-26 17:24:02 -04:00
d.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
dart.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
dockerfile.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
dot.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
erb.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
fish.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
fortran.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
gdscript.yaml Fix precedence for python multi-comments 2017-03-26 17:24:02 -04:00
gentoo-ebuild.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
gentoo-etc-portage.yaml Improve new syntax files and fix a region glitch 2017-03-21 15:07:39 -04:00
git-commit.yaml Improve new syntax files and fix a region glitch 2017-03-21 15:07:39 -04:00
git-config.yaml Improve new syntax files and fix a region glitch 2017-03-21 15:07:39 -04:00
git-rebase-todo.yaml Improve new syntax files and fix a region glitch 2017-03-21 15:07:39 -04:00
glsl.yaml Improve new syntax files and fix a region glitch 2017-03-21 15:07:39 -04:00
go.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
golo.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
groff.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
haml.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
haskell.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
html.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
html4.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
html5.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
ini.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
inputrc.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
java.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
javascript.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
json.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
keymap.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
kickstart.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
ledger.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
lfe.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
lilypond.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
lisp.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
lua.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
mail.yaml Improve new syntax files and fix a region glitch 2017-03-21 15:07:39 -04:00
makefile.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
man.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
markdown.yaml Improve new syntax files and fix a region glitch 2017-03-21 15:07:39 -04:00
micro.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
mpdconf.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
nanorc.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
nginx.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
nim.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
objc.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
ocaml.yaml Improve new syntax files and fix a region glitch 2017-03-21 15:07:39 -04:00
pascal.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
patch.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
peg.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
perl.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
perl6.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
php.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
pkg-config.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
po.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
pony.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
pov.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
privoxy-action.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
privoxy-config.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
privoxy-filter.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
puppet.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
python2.yaml Fix precedence for python multi-comments 2017-03-26 17:24:02 -04:00
python3.yaml Fix precedence for python multi-comments 2017-03-26 17:24:02 -04:00
r.yaml Improve new syntax files and fix a region glitch 2017-03-21 15:07:39 -04:00
README.md Update syntax readme and docs 2017-03-26 18:58:08 -04:00
reST.yaml Improve new syntax files and fix a region glitch 2017-03-21 15:07:39 -04:00
rpmspec.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
ruby.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
rust.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
scala.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
sed.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
sh.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
sls.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
solidity.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
sql.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
swift.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
syntax_checker.go Support rule precedence just like the old format 2017-03-21 13:15:46 -04:00
syntax_converter.go Improve new syntax files and fix a region glitch 2017-03-21 15:07:39 -04:00
systemd.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
tcl.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
tex.yaml Improve new syntax files and fix a region glitch 2017-03-21 15:07:39 -04:00
toml.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
typescript.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
vala.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
vhdl.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
vi.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00
xml.yaml Improve new syntax files and fix a region glitch 2017-03-21 15:07:39 -04:00
xresources.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
yaml.yaml Update yaml syntax file 2017-03-26 17:45:58 -04:00
yum.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
zsh.yaml Add support for lookbehind in region regexes 2017-03-22 19:03:06 -04:00

Syntax Files

Here are micro's syntax files.

Each yaml file specifies how to detect the filetype based on file extension or headers (first line of the file). Then there are patterns and regions linked to highlight groups which tell micro how to highlight that filetype.

Making your own syntax files is very simple. I recommend you check the file after you are finished with the syntax_checker.go program (located in this directory). Just place your yaml syntax file in the current directory and run go run syntax_checker.go and it will check every file. If there are no errors it will print No issues!.

You can read more about how to write syntax files (and colorschemes) in the colors documentation.

Legacy '.micro' filetype

Micro used to use the .micro filetype for syntax files which is no longer supported. If you have .micro syntax files that you would like to convert to the new filetype, you can use the syntax_converter.go program (also located in this directory):

$ go run syntax_converter.go c.micro > c.yaml

Most the the syntax files here have been converted using that tool.

Note that the tool isn't perfect and though it is unlikely, you may run into some small issues that you will have to fix manually (about 4 files from this directory had issues after being converted).