easier regex matching
This commit is contained in:
parent
6d9831b2a5
commit
b0d6e153f7
@ -83,31 +83,27 @@ local function format_tree(tree)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local HIGHLIGHT_GROUPS = {
|
local HIGHLIGHT_GROUPS = {
|
||||||
['^.*%.md$'] = 'MarkdownFile';
|
|
||||||
['^LICENSE$'] = 'LicenseFile';
|
['^LICENSE$'] = 'LicenseFile';
|
||||||
['^%.?vimrc$'] = 'VimFile';
|
['^%.?vimrc$'] = 'VimFile';
|
||||||
['^.*%.vim$'] = 'VimFile';
|
['%.vim$'] = 'VimFile';
|
||||||
['^.*%.c$'] = 'CFile';
|
['%.c$'] = 'CFile';
|
||||||
['^.*%.cpp$'] = 'CFile';
|
['%.cpp$'] = 'CFile';
|
||||||
['^.*%.cxx$'] = 'CFile';
|
['%.cxx$'] = 'CFile';
|
||||||
['^.*%.h$'] = 'CFile';
|
['%.h$'] = 'CFile';
|
||||||
['^.*%.hpp$'] = 'CFile';
|
['%.hpp$'] = 'CFile';
|
||||||
['^.*%.py$'] = 'PythonFile';
|
['%.py$'] = 'PythonFile';
|
||||||
['^.*%.lua$'] = 'LuaFile';
|
['%.lua$'] = 'LuaFile';
|
||||||
['^.*%.rs$'] = 'RustFile';
|
['%.rs$'] = 'RustFile';
|
||||||
['^.*%.sh$'] = 'ShellFile';
|
['%.[cz]?sh$'] = 'ShellFile';
|
||||||
['^.*%.zsh$'] = 'ShellFile';
|
['%.md$'] = 'MarkdownFile';
|
||||||
['^.*%.csh$'] = 'ShellFile';
|
['%.json$'] = 'JsonFile';
|
||||||
['^.*%.rs$'] = 'RustFile';
|
['%.toml$'] = 'TomlFile';
|
||||||
['^.*%.js$'] = 'JavascriptFile';
|
['%.yml$'] = 'YamlFile';
|
||||||
['^.*%.json$'] = 'JsonFile';
|
['%.gitignore$'] = 'GitignoreFile';
|
||||||
['^.*%.toml$'] = 'TomlFile';
|
['%.js$'] = 'JavascriptFile';
|
||||||
['^.*%.yml$'] = 'YamlFile';
|
['%.ts$'] = 'TypescriptFile';
|
||||||
['^.*%.gitignore$'] = 'GitignoreFile';
|
['%.[tj]sx$'] = 'ReactFile';
|
||||||
['^.*%.ts$'] = 'TypescriptFile';
|
['%.html?$'] = 'HtmlFile';
|
||||||
['^.*%.jsx$'] = 'ReactFile';
|
|
||||||
['^.*%.tsx$'] = 'ReactFile';
|
|
||||||
['^.*%.html?$'] = 'HtmlFile';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
local function highlight_line(buffer)
|
local function highlight_line(buffer)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user