diff options
| author | rxi <rxi@users.noreply.github.com> | 2020-06-08 09:44:51 +0100 |
|---|---|---|
| committer | rxi <rxi@users.noreply.github.com> | 2020-06-08 16:11:22 +0100 |
| commit | ba6c14846b97512254901357392d5a649fe130dd (patch) | |
| tree | 55c71f177acfd2ec38c2b9b1a96d0e38ec4685f9 /data/plugins/language_python.lua | |
| parent | db471c05547f060acbaa3001d235588431da5bef (diff) | |
| download | lite-xl-ba6c14846b97512254901357392d5a649fe130dd.tar.gz lite-xl-ba6c14846b97512254901357392d5a649fe130dd.zip | |
Added file-header pattern support to `syntax`
Diffstat (limited to 'data/plugins/language_python.lua')
| -rw-r--r-- | data/plugins/language_python.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/data/plugins/language_python.lua b/data/plugins/language_python.lua index ef79f234..4a6ada33 100644 --- a/data/plugins/language_python.lua +++ b/data/plugins/language_python.lua @@ -2,6 +2,7 @@ local syntax = require "core.syntax" syntax.add { files = "%.py$", + headers = "^#!.*[ /]python", comment = "#", patterns = { { pattern = { "#", "\n" }, type = "comment" }, |
