Add support for syntax headers and update tcell

This commit is contained in:
Zachary Yedidia
2019-12-28 18:53:51 -05:00
parent c2e7fd34a7
commit 8663014bbe
6 changed files with 90 additions and 6 deletions

View File

@@ -12,11 +12,12 @@ import (
)
const (
RTColorscheme = 0
RTSyntax = 1
RTHelp = 2
RTPlugin = 3
NumTypes = 4 // How many filetypes are there
RTColorscheme = 0
RTSyntax = 1
RTHelp = 2
RTPlugin = 3
RTSyntaxHeader = 4
NumTypes = 5 // How many filetypes are there
)
type RTFiletype byte
@@ -135,6 +136,7 @@ func InitRuntimeFiles() {
add(RTColorscheme, "colorschemes", "*.micro")
add(RTSyntax, "syntax", "*.yaml")
add(RTSyntaxHeader, "header", "*.hdr")
add(RTHelp, "help", "*.md")
initlua := filepath.Join(ConfigDir, "init.lua")