Merge pull request #683 from Guldoman/named_languages

Add names to language plugins
This commit is contained in:
Adam 2021-11-22 11:41:49 -05:00 committed by GitHub
commit 9869484ec6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 = {