A Gemini syntax file for the Micro editor

2020 05 10

I have started using the Micro editor:

Micro text editor

and have created a syntax file for the gemini protocol.

Put this into ~/.config/micro/syntax/gemini.yaml and you should be good to go!

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

filetype: gemini

detect:
  filename: "\\.(gmi|gemini)$"

rules:

  # Heading levels
  - special: "^#.*"
  - special: "^##.*"
  - special: "^###.*"

  # Link label
  - type: "^=>\\s*\\S+\\s+.*"
  # recolor link URL
  - constant: "^=>\\s*\\S+"
  # recolor the link prefix
  - special: "^=>"

  # Unordered lists
  - identifier: "^\\*.*"

  # Preformatted blocks
  - preproc:
      start: "^```$"
      end: "^```$"
      rules:
        - preproc: ""

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

⬑ Back to the glog index

ↂ Quokka's Capsule

↯ bleyble.com

~EOF~