JSON mode for cell editor · GyPapi/sqlitebrowser@c832d8a · GitHub
Skip to content

Commit c832d8a

Browse files
committed
JSON mode for cell editor
Support for JSON in the Database Cell editor using the QScintilla library. The lexJSON has been added to the compilation. See issue sqlitebrowser#1173
1 parent 1d701ad commit c832d8a

7 files changed

Lines changed: 165 additions & 23 deletions

File tree

‎CMakeLists.txt‎

Lines changed: 2 additions & 0 deletions

‎libs/qscintilla/Qt4Qt5/CMakeLists.txt‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ set(QSCINTILLA_SRC
2222
qscilexer.cpp
2323
qscilexercustom.cpp
2424
qscilexersql.cpp
25+
qscilexerjson.cpp
2526
qscimacro.cpp
2627
qsciprinter.cpp
2728
qscistyle.cpp
@@ -33,6 +34,7 @@ set(QSCINTILLA_SRC
3334
PlatQt.cpp
3435
ScintillaQt.cpp
3536
../lexers/LexSQL.cpp
37+
../lexers/LexJSON.cpp
3638
../lexlib/Accessor.cpp
3739
../lexlib/CharacterCategory.cpp
3840
../lexlib/CharacterSet.cpp
@@ -143,6 +145,7 @@ set(QSCINTILLA_MOC_HDR
143145
./Qsci/qscilexer.h
144146
./Qsci/qscilexercustom.h
145147
./Qsci/qscilexersql.h
148+
./Qsci/qscilexerjson.h
146149
./Qsci/qscimacro.h
147150
SciClasses.h
148151
ScintillaQt.h

‎libs/qscintilla/Qt4Qt5/qscintilla.pro‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ HEADERS = \
8686
./Qsci/qscilexer.h \
8787
./Qsci/qscilexercustom.h \
8888
./Qsci/qscilexersql.h \
89+
./Qsci/qscilexerjson.h \
8990
./Qsci/qscimacro.h \
9091
./Qsci/qsciprinter.h \
9192
./Qsci/qscistyle.h \
@@ -158,6 +159,7 @@ SOURCES = \
158159
qscilexer.cpp \
159160
qscilexercustom.cpp \
160161
qscilexersql.cpp \
162+
qscilexerjson.cpp \
161163
qscimacro.cpp \
162164
qsciprinter.cpp \
163165
qscistyle.cpp \
@@ -169,6 +171,7 @@ SOURCES = \
169171
PlatQt.cpp \
170172
ScintillaQt.cpp \
171173
../lexers/LexSQL.cpp \
174+
../lexers/LexJSON.cpp \
172175
../lexlib/Accessor.cpp \
173176
../lexlib/CharacterCategory.cpp \
174177
../lexlib/CharacterSet.cpp \

‎libs/qscintilla/src/Catalogue.cpp‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ int Scintilla_LinkLexers() {
7878
//++Autogenerated -- run scripts/LexGen.py to regenerate
7979
//**\(\tLINK_LEXER(\*);\n\)
8080
LINK_LEXER(lmSQL);
81+
LINK_LEXER(lmJSON);
8182

8283
//--Autogenerated -- end of automatically generated section
8384

‎src/EditDialog.cpp‎

Lines changed: 143 additions & 21 deletions

0 commit comments

Comments
 (0)