From 55986630db66faa9223cfa5c661407341bfd7316 Mon Sep 17 00:00:00 2001 From: Patrizio Bekerle Date: Mon, 1 May 2023 15:14:32 +0200 Subject: [PATCH] pbek/QOwnNotes#2779 doc: mention KDE syntax highlighting --- qownlanguagedata.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qownlanguagedata.cpp b/qownlanguagedata.cpp index 054d957..08fcde2 100644 --- a/qownlanguagedata.cpp +++ b/qownlanguagedata.cpp @@ -644,7 +644,7 @@ void loadJSData(QMultiHash &types, } /**********************************************************/ -/* Nix Data *********************************************/ +/* Nix Data ***********************************************/ /**********************************************************/ static bool NixDataInitialized = false; static QMultiHash nix_keywords; @@ -652,6 +652,8 @@ static QMultiHash nix_types; static QMultiHash nix_literals; static QMultiHash nix_builtin; static QMultiHash nix_other; + +// also see https://github.com/KDE/syntax-highlighting/blob/master/data/syntax/nix.xml void initNixData() { nix_keywords = {{('i'), QLatin1String("in")}, {('a'), QLatin1String("assert")},