Add names to language plugins

This commit is contained in:
Guldoman 2021-11-21 03:46:43 +01:00
parent a7bbd3d6f7
commit 3176b467ca
No known key found for this signature in database
GPG Key ID: C08A498EC7F1AFDD
9 changed files with 9 additions and 0 deletions

View File

@ -2,6 +2,7 @@
local syntax = require "core.syntax" local syntax = require "core.syntax"
syntax.add { syntax.add {
name = "C",
files = { "%.c$", "%.h$", "%.inl$" }, files = { "%.c$", "%.h$", "%.inl$" },
comment = "//", comment = "//",
patterns = { patterns = {

View File

@ -4,6 +4,7 @@ pcall(require, "plugins.language_c")
local syntax = require "core.syntax" local syntax = require "core.syntax"
syntax.add { syntax.add {
name = "C++",
files = { files = {
"%.h$", "%.inl$", "%.cpp$", "%.cc$", "%.C$", "%.cxx$", "%.h$", "%.inl$", "%.cpp$", "%.cc$", "%.C$", "%.cxx$",
"%.c++$", "%.hh$", "%.H$", "%.hxx$", "%.hpp$", "%.h++$" "%.c++$", "%.hh$", "%.H$", "%.hxx$", "%.hpp$", "%.h++$"

View File

@ -2,6 +2,7 @@
local syntax = require "core.syntax" local syntax = require "core.syntax"
syntax.add { syntax.add {
name = "CSS",
files = { "%.css$" }, files = { "%.css$" },
patterns = { patterns = {
{ pattern = "\\.", type = "normal" }, { pattern = "\\.", type = "normal" },

View File

@ -2,6 +2,7 @@
local syntax = require "core.syntax" local syntax = require "core.syntax"
syntax.add { syntax.add {
name = "HTML",
files = { "%.html?$" }, files = { "%.html?$" },
patterns = { patterns = {
{ {

View File

@ -2,6 +2,7 @@
local syntax = require "core.syntax" local syntax = require "core.syntax"
syntax.add { syntax.add {
name = "JavaScript",
files = { "%.js$", "%.json$", "%.cson$" }, files = { "%.js$", "%.json$", "%.cson$" },
comment = "//", comment = "//",
patterns = { patterns = {

View File

@ -2,6 +2,7 @@
local syntax = require "core.syntax" local syntax = require "core.syntax"
syntax.add { syntax.add {
name = "Lua",
files = "%.lua$", files = "%.lua$",
headers = "^#!.*[ /]lua", headers = "^#!.*[ /]lua",
comment = "--", comment = "--",

View File

@ -4,6 +4,7 @@ local syntax = require "core.syntax"
syntax.add { syntax.add {
name = "Markdown",
files = { "%.md$", "%.markdown$" }, files = { "%.md$", "%.markdown$" },
patterns = { patterns = {
{ pattern = "\\.", type = "normal" }, { pattern = "\\.", type = "normal" },

View File

@ -2,6 +2,7 @@
local syntax = require "core.syntax" local syntax = require "core.syntax"
syntax.add { syntax.add {
name = "Python",
files = { "%.py$", "%.pyw$" }, files = { "%.py$", "%.pyw$" },
headers = "^#!.*[ /]python", headers = "^#!.*[ /]python",
comment = "#", comment = "#",

View File

@ -2,6 +2,7 @@
local syntax = require "core.syntax" local syntax = require "core.syntax"
syntax.add { syntax.add {
name = "XML",
files = { "%.xml$" }, files = { "%.xml$" },
headers = "<%?xml", headers = "<%?xml",
patterns = { patterns = {