Skip to content

Commit

Permalink
pbek/QOwnNotes#2779 doc: mention KDE syntax highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
pbek committed May 1, 2023
1 parent f511c32 commit 5598663
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion qownlanguagedata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -644,14 +644,16 @@ void loadJSData(QMultiHash<char, QLatin1String> &types,
}

/**********************************************************/
/* Nix Data *********************************************/
/* Nix Data ***********************************************/
/**********************************************************/
static bool NixDataInitialized = false;
static QMultiHash<char, QLatin1String> nix_keywords;
static QMultiHash<char, QLatin1String> nix_types;
static QMultiHash<char, QLatin1String> nix_literals;
static QMultiHash<char, QLatin1String> nix_builtin;
static QMultiHash<char, QLatin1String> 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")},
Expand Down

0 comments on commit 5598663

Please sign in to comment.