diff options
-rw-r--r-- | port-files/FreeBSD/deskutils/lumina-textedit/pkg-plist | 1 | ||||
-rw-r--r-- | src-qt5/desktop-utils/lumina-textedit/syntax_rules/json.syntax | 34 |
2 files changed, 35 insertions, 0 deletions
diff --git a/port-files/FreeBSD/deskutils/lumina-textedit/pkg-plist b/port-files/FreeBSD/deskutils/lumina-textedit/pkg-plist index a0ca79cc..cfe8ed17 100644 --- a/port-files/FreeBSD/deskutils/lumina-textedit/pkg-plist +++ b/port-files/FreeBSD/deskutils/lumina-textedit/pkg-plist @@ -64,6 +64,7 @@ share/lumina-desktop/i18n/l-te_zh_HK.qm share/lumina-desktop/i18n/l-te_zh_TW.qm share/lumina-desktop/i18n/l-te_zu.qm share/lumina-desktop/syntax_rules/cpp.syntax +share/lumina-desktop/syntax_rules/json.syntax share/lumina-desktop/syntax_rules/python.syntax share/lumina-desktop/syntax_rules/README.md share/lumina-desktop/syntax_rules/rst.syntax diff --git a/src-qt5/desktop-utils/lumina-textedit/syntax_rules/json.syntax b/src-qt5/desktop-utils/lumina-textedit/syntax_rules/json.syntax new file mode 100644 index 00000000..fdca7211 --- /dev/null +++ b/src-qt5/desktop-utils/lumina-textedit/syntax_rules/json.syntax @@ -0,0 +1,34 @@ +# Syntax support file for the Lumina Text Editor +# =================================== +# JSON language support rules +# Written by Ken Moore <ken@ixsystems.com> +# Released under the 2-clause BSD license +# =================================== + +{ + "meta": { + "name": "JSON", + "file_suffix": ["json"] + }, + "format": { + "line_wrap": false, + "highlight_whitespace_eol" : true, + "tab_width": 8 + }, + "rules": [{ + "name": "keywords", + "words": ["true","false"], + "foreground": "colors/keyword" + }, + { + "name": "numbers", + "regex" : "[0-9\\.]+", + "foreground": "colors/altkeyword" + }, + { + "name" : "strings inside a tag", + "regex": "\"[^\"\\\\]*(\\\\(.|\\n)[^\"\\\\]*)*\"|'[^'\\\\]*(\\\\(.|\\n)[^'\\\\]*)*'", + "foreground" : "colors/text" + } + ] +} |