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/json.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/json.syntax')
-rw-r--r-- | src-qt5/desktop-utils/lumina-textedit/syntax_rules/json.syntax | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/syntax_rules/json.syntax b/src-qt5/desktop-utils/lumina-textedit/syntax_rules/json.syntax index ab67d384..1982e599 100644 --- a/src-qt5/desktop-utils/lumina-textedit/syntax_rules/json.syntax +++ b/src-qt5/desktop-utils/lumina-textedit/syntax_rules/json.syntax @@ -8,7 +8,8 @@ { "meta": { "name": "JSON", - "file_suffix": ["json", "syntax"] + "file_suffix": ["json", "syntax"], + "first_line_match":["{"] }, "format": { "line_wrap": false, |