diff options
author | Ken Moore <ken@ixsystems.com> | 2017-12-28 10:17:02 -0500 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-12-28 10:17:02 -0500 |
commit | 16e6402abdc43b64467682c370237eb60f031af0 (patch) | |
tree | 00f1e95f7a79040f92ee65d04c9de146350b8962 /src-qt5/desktop-utils/lumina-textedit/syntax_rules/python.syntax | |
parent | Merge remote-tracking branch 'origin/master' (diff) | |
download | lumina-16e6402abdc43b64467682c370237eb60f031af0.tar.gz lumina-16e6402abdc43b64467682c370237eb60f031af0.tar.bz2 lumina-16e6402abdc43b64467682c370237eb60f031af0.zip |
Quick update to lumina-textedit:
1. Add a new syntax highlighting "meta" option for auto-selecting a ruleset based on the first line of text in the file, and add rules for shell, json, and python to support first-line matches.
2. Fix up the detection of "read-only" property on newly-saved files.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-textedit/syntax_rules/python.syntax')
-rw-r--r-- | src-qt5/desktop-utils/lumina-textedit/syntax_rules/python.syntax | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/syntax_rules/python.syntax b/src-qt5/desktop-utils/lumina-textedit/syntax_rules/python.syntax index 6690d98c..2145beec 100644 --- a/src-qt5/desktop-utils/lumina-textedit/syntax_rules/python.syntax +++ b/src-qt5/desktop-utils/lumina-textedit/syntax_rules/python.syntax @@ -8,7 +8,8 @@ { "meta": { "name": "Python", - "file_suffix": ["py", "pyc"] + "file_suffix": ["py", "pyc"], + "first_line_regex" : "(#!).+(python)" }, "format": { "line_wrap": false, |