micro/runtime/syntax
2020-03-02 20:03:28 -05:00
..
ada.yaml #964 add ada syntax 2017-12-27 14:27:42 +00:00
apacheconf.yaml Add skip statements to all strings 2017-03-29 09:45:16 -04:00
arduino.yaml Add skip statements to all strings 2017-03-29 09:45:16 -04:00
asciidoc.yaml Improve new syntax files and fix a region glitch 2017-03-21 15:07:39 -04:00
asm.yaml Add skip statements to all strings 2017-03-29 09:45:16 -04:00
ats.yaml Update ats syntax (#1141) 2018-07-16 15:37:57 -04:00
awk.yaml Add skip statements to all strings 2017-03-29 09:45:16 -04:00
bat.yaml Add windows .bat syntax highlighting file #1388 2019-11-14 01:11:02 +00:00
c++.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
c.yaml Fix some keywords being mistakenly highlighted in C syntax 2018-08-07 14:44:53 +02:00
caddyfile.yaml Add skip statements to all strings 2017-03-29 09:45:16 -04:00
clojure.yaml match .edn files 2018-10-16 10:39:09 -03:00
cmake.yaml Add skip statements to all strings 2017-03-29 09:45:16 -04:00
coffeescript.yaml Add skip statements to all strings 2017-03-29 09:45:16 -04:00
colortest.yaml Improve new syntax files and fix a region glitch 2017-03-21 15:07:39 -04:00
conf.yaml Add skip statements to all strings 2017-03-29 09:45:16 -04:00
conky.yaml Improve new syntax files and fix a region glitch 2017-03-21 15:07:39 -04:00
cpp.yaml Add skip statements to all strings 2017-03-29 09:45:16 -04:00
crontab.yaml added crontab highlighting. (#689) 2017-06-10 15:24:46 -04:00
crystal.yaml Ruby syntax improvements. 2019-04-30 11:29:42 -07:00
csharp.yaml csharp bracket highlighting problem #1172 (#1199) 2020-02-09 00:21:27 -05:00
css.yaml Add skip statements to all strings 2017-03-29 09:45:16 -04:00
cython.yaml Add skip statements to all strings 2017-03-29 09:45:16 -04:00
d.yaml Fix zyedidia#1330: Dlang character syntax highlighting 2019-05-24 20:12:45 +02:00
dart.yaml Add skip statements to all strings 2017-03-29 09:45:16 -04:00
dockerfile.yaml Use type.keyword instead of keyword 2017-09-13 18:00:47 -04:00
dot.yaml Add skip statements to all strings 2017-03-29 09:45:16 -04:00
elixir.yaml Elixir configuration (#1118) 2018-05-26 10:08:35 -04:00
elm.yaml Add Elm syntax file 2019-04-25 22:45:23 -05:00
erb.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
erlang.yaml Add syntax file for Erlang 2018-11-23 09:37:51 -05:00
fish.yaml Add skip statements to all strings 2017-03-29 09:45:16 -04:00
forth.yaml Add Forth highlighting 2019-05-25 21:01:24 -07:00
fortran.yaml Add skip statements to all strings 2017-03-29 09:45:16 -04:00
fsharp.yaml F# Configuration 2018-05-29 20:02:58 +05:30
gdscript.yaml Improve the GDScript syntax file 2018-08-07 15:16:23 +02:00
gentoo-ebuild.yaml Add skip statements to all strings 2017-03-29 09:45:16 -04:00
gentoo-etc-portage.yaml Changed filename detection for Gentoo etc-portage to include detection of folders 2018-10-19 09:47:51 +02:00
git-commit.yaml Fix #1314: Add support for diffs from git commit --verbose. 2019-05-21 17:26:06 -07:00
git-config.yaml Use type.keyword instead of keyword 2017-09-13 18:00:47 -04:00
git-rebase-todo.yaml Remove weird ignore on git-commit 2018-01-05 03:41:50 -05:00
glsl.yaml Improve new syntax files and fix a region glitch 2017-03-21 15:07:39 -04:00
go.yaml Add golang keywords (#1455) 2020-01-06 12:06:44 -05:00
godoc.yaml Add mc, godoc syntax files 2019-11-05 22:57:36 -05:00
golo.yaml Add skip statements to all strings 2017-03-29 09:45:16 -04:00
graphql.yaml add support for input and scalar defintiions (for graphql-tools schema) 2019-05-16 16:25:51 -07: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 Update haskell syntax file 2020-02-11 19:13:36 -05:00
html.yaml Merge branch 'issue_1008' of https://github.com/sum01/micro into sum01-issue_1008 2020-02-10 14:59:31 -05:00
html4.yaml Fix some issues with unicode syntax highlighting 2017-03-27 14:40:42 -04:00
html5.yaml Fix some issues with unicode syntax highlighting 2017-03-27 14:40:42 -04:00
ini.yaml Highlight .tscn, .tres and project.godot files using INI syntax 2018-09-29 12:14:15 +02:00
inputrc.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
java.yaml Add skip statements to all strings 2017-03-29 09:45:16 -04:00
javascript.yaml Updated javascript.yaml syntaf file 2020-01-18 19:05:33 +01:00
jinja2.yaml Remove detect requirement and detect in jinja file 2019-12-28 22:27:44 -05:00
json.yaml Add skip statements to all strings 2017-03-29 09:45:16 -04:00
jsonnet.yaml Add jsonnet syntax file (#1320) 2020-02-09 00:23:49 -05:00
julia.yaml Merge branch 'master' of https://github.com/Paalon/micro into Paalon-master 2020-02-09 00:19:02 -05:00
keymap.yaml Add skip statements to all strings 2017-03-29 09:45:16 -04:00
kickstart.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
kotlin.yaml Enable syntax highlighting for Kotlin script files 2019-12-26 19:13:23 -05:00
ledger.yaml Improve yaml string highlighting 2017-08-14 11:28:10 -04:00
lfe.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
LICENSE Update readme 2020-02-10 00:38:57 -05:00
lilypond.yaml Add skip statements to all strings 2017-03-29 09:45:16 -04:00
lisp.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
lua.yaml Lua syntax improvements; fixes #1155, fixes #1136 2018-08-18 07:00:51 -04:00
mail.yaml Improve new syntax files and fix a region glitch 2017-03-21 15:07:39 -04:00
make_headers.go Add support for syntax headers and update tcell 2019-12-28 18:53:51 -05:00
makefile.yaml Fix Makefile = highlighting 2018-01-17 23:44:53 -05: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
mc.yaml Add mc, godoc syntax files 2019-11-05 22:57:36 -05:00
micro.yaml Fix micro file syntax 2017-12-30 12:13:52 -05: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 Merge branch 'master' into highlight-nimscript 2019-12-30 14:22:22 -05:00
objc.yaml Add skip statements to all strings 2017-03-29 09:45:16 -04:00
ocaml.yaml Improve ocaml syntax highlighting 2018-01-30 22:34:44 -05:00
octave.yaml Added initial support for Octave/Matlab syntax highlighting 2017-10-02 14:08:22 +04:00
pascal.yaml Add skip statements to all strings 2017-03-29 09:45:16 -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 Perl syntax highlighting fix (#818) 2017-09-24 11:59:57 -04:00
perl6.yaml Add other Perl6 extensions 2017-04-11 09:32:46 -04:00
php.yaml Reclassified PHP keywords 2019-05-12 20:14:17 +09: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
PowerShell.yaml Create PowerShell.yaml 2018-03-21 03:58:04 +01: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
proto.yaml Add proto syntax file 2019-11-06 07:23:04 -05:00
puppet.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
python2.yaml Merge pull request #1205 from kylebarron/python-syntax-fixes 2018-12-10 14:28:21 -05:00
python3.yaml Add missing keywords for Python syntax 2019-07-03 16:53:53 -07:00
r.yaml Improved R syntax rules 2017-04-15 02:06:19 +02:00
README.md Update readme 2019-12-25 16:17:31 -05: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 support for Fastlane and Cocoapods file syntax highlighting (#1544) 2020-03-02 20:03:28 -05:00
rust.yaml Add skip statements to all strings 2017-03-29 09:45:16 -04:00
scala.yaml a couple more keywords to scala syntax 2017-10-04 10:17:50 +01:00
sed.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
sh.yaml Update sh.yaml 2019-01-14 04:03:11 -05:00
sls.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
solidity.yaml Use type.keyword instead of keyword 2017-09-13 18:00:47 -04:00
sql.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
stata.yaml Add Stata syntax file 2018-10-02 15:46:38 -04:00
svelte.yaml vue syntax (+typescript) & svelte syntax 2019-12-17 11:38:22 +01:00
swift.yaml Added kotlin highlighting and fixed swift line comment todo not highlighting. 2017-05-26 01:59:51 +01:00
syntax_checker.go Update deps 2020-01-01 20:44:45 -05:00
syntax_converter.go Fix windows errors 2018-01-04 21:46:44 -05:00
systemd.yaml Add [Timer] section to systemd highlighting 2018-09-29 12:15:50 +02:00
tcl.yaml Fixes #1249 2018-12-21 12:50:33 -05:00
tex.yaml Corrected tex comment start separator 2019-11-29 12:05:54 +01:00
toml.yaml Add skip statements to all strings 2017-03-29 09:45:16 -04:00
twig.yaml Add twig syntax (https://twig.sensiolabs.org/) 2017-06-30 12:31:18 +02:00
typescript.yaml Add skip statements to all strings 2017-03-29 09:45:16 -04:00
v.yaml Syntax file change 2020-02-13 16:50:44 -05:00
vala.yaml improved highlighting for Vala types 2017-07-11 14:40:38 +02:00
verilog.yaml Syntax file change 2020-02-13 16:50:44 -05:00
vhdl.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
vi.yaml Update vi syntax 2019-10-26 15:51:38 +07:00
vue.yaml vue syntax (+typescript) & svelte syntax 2019-12-17 11:38:22 +01:00
xml.yaml Update xml.yaml 2020-01-06 12:29:33 -05:00
xresources.yaml Correct the comment from # to ! as point out in the gitter chat. 2017-06-10 11:33:50 +01:00
yaml.yaml Allow more ways to write booleans in YAML 2018-11-22 11:00:23 +01:00
yum.yaml Add converted syntax files 2017-03-21 14:55:22 -04:00
zig.yaml Readonly should only apply to default buffers 2020-01-15 20:09:17 -05:00
zscript.yaml Create zscript.yaml 2019-12-04 11:52:22 -07:00
zsh.yaml Update zsh.yaml 2018-12-13 09:55:19 +01: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).

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).*"

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
  • pascal
  • python
  • ruby
  • sh
  • git
  • tex
  • solidity

License

See LICENSE.