Files
zyedidia.micro/runtime/syntax
Saeed Rasooli 80bd2694d6 fixes in python (2.7) syntax file, and rename to python2.micro
constants: sort by name, and __file__, remove __import__
functions: add next, help, __import__
separate types (like int and str) from builtin functions
separate and comment out methods/attrs of standard library (why hightlight?)
comment out NonSenseTypes like IntType, they are never used in code
magic methods: add __dict__
exec and map are functions, not keyword
remove trailing spaces
2016-10-28 21:01:43 +03:30
..
2016-08-31 17:50:09 +03:00
2016-08-25 15:48:02 -04:00
2016-08-27 17:10:26 -04:00
2016-08-30 17:22:55 -06:00
2016-08-25 15:48:02 -04:00
2016-09-03 13:00:05 -04:00
2016-08-25 15:48:02 -04:00
2016-08-25 15:48:02 -04:00
2016-08-25 15:48:02 -04:00
2016-08-27 17:10:26 -04:00
2016-09-03 09:16:52 -07:00
2016-08-25 15:48:02 -04:00
2016-08-25 15:48:02 -04:00
2016-08-25 15:48:02 -04:00
2016-08-25 15:48:02 -04:00
2016-08-25 15:48:02 -04:00
2016-08-25 15:48:02 -04:00
2016-08-25 15:48:02 -04:00
2016-08-31 12:06:46 +03:00
2016-09-02 03:59:36 +04:00
2016-08-25 15:48:02 -04:00
2016-08-25 15:48:02 -04:00
2016-09-04 11:11:30 +02:00
2016-07-12 07:35:43 +02:00
2016-08-25 15:48:02 -04:00
2016-08-27 17:10:26 -04:00
2016-08-25 15:48:02 -04:00
2016-08-31 17:50:09 +03:00
2016-08-25 15:48:02 -04:00
2016-08-25 15:48:02 -04:00
2016-08-25 15:48:02 -04:00
2016-09-05 17:53:49 +02:00
2016-08-25 15:48:02 -04:00
2016-08-25 15:48:02 -04:00
2016-08-25 15:48:02 -04:00
2016-08-25 15:48:02 -04:00
2016-09-06 18:25:08 +09:00
2016-08-25 15:48:02 -04:00
2016-08-25 15:48:02 -04:00
2016-08-25 15:48:02 -04:00
2016-08-25 15:48:02 -04:00
2016-09-05 17:53:49 +02:00
2016-08-25 15:48:02 -04:00
2016-08-25 15:48:02 -04:00
2016-08-25 15:48:02 -04:00
2016-09-09 12:41:56 -04:00
2016-08-25 15:48:02 -04:00
2016-08-25 15:48:02 -04:00
2016-08-25 15:48:02 -04:00
2016-08-25 15:48:02 -04:00
2016-08-25 15:48:02 -04:00
2016-08-27 17:10:26 -04:00
2016-10-19 09:35:03 +02:00
2016-08-25 15:48:02 -04:00
2016-08-25 15:48:02 -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) ".*"

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

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.