Added file-header pattern support to syntax
This commit is contained in:
@@ -2,6 +2,7 @@ local syntax = require "core.syntax"
|
||||
|
||||
syntax.add {
|
||||
files = "%.py$",
|
||||
headers = "^#!.*[ /]python",
|
||||
comment = "#",
|
||||
patterns = {
|
||||
{ pattern = { "#", "\n" }, type = "comment" },
|
||||
|
||||
Reference in New Issue
Block a user