From 0ed85dc4079b8d3cc2b803995e61ca3ae773c35d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Lucas=20Golini?= Date: Sat, 29 Mar 2025 18:49:12 -0300 Subject: [PATCH] Update language definitions with some of the latest changes (remove auto-injected rules). Allow search in chat input. --- src/eepp/ui/doc/languages/json.cpp | 11 ++++++++++- .../src/eepp/ui/doc/languages/ada.cpp | 2 -- .../src/eepp/ui/doc/languages/awkscript.cpp | 2 -- .../src/eepp/ui/doc/languages/bazel.cpp | 2 -- .../src/eepp/ui/doc/languages/bend.cpp | 2 -- .../src/eepp/ui/doc/languages/blade.cpp | 2 -- .../src/eepp/ui/doc/languages/blueprint.cpp | 2 -- .../src/eepp/ui/doc/languages/brainfuck.cpp | 2 -- .../src/eepp/ui/doc/languages/buzz.cpp | 2 -- .../src/eepp/ui/doc/languages/carbon.cpp | 2 -- .../src/eepp/ui/doc/languages/clojure.cpp | 2 -- .../src/eepp/ui/doc/languages/crystal.cpp | 2 -- .../src/eepp/ui/doc/languages/elm.cpp | 2 -- .../src/eepp/ui/doc/languages/fennel.cpp | 2 -- .../src/eepp/ui/doc/languages/fortran.cpp | 2 -- .../src/eepp/ui/doc/languages/fstab.cpp | 2 -- .../src/eepp/ui/doc/languages/graphql.cpp | 2 -- .../src/eepp/ui/doc/languages/groovy.cpp | 2 -- .../src/eepp/ui/doc/languages/hare.cpp | 2 -- .../src/eepp/ui/doc/languages/haxe.cpp | 8 -------- .../src/eepp/ui/doc/languages/htaccess.cpp | 3 +-- .../src/eepp/ui/doc/languages/julia.cpp | 2 -- .../src/eepp/ui/doc/languages/lobster.cpp | 2 -- .../src/eepp/ui/doc/languages/moonscript.cpp | 2 -- .../src/eepp/ui/doc/languages/objeck.cpp | 2 -- .../src/eepp/ui/doc/languages/odin.cpp | 2 -- .../src/eepp/ui/doc/languages/openscad.cpp | 2 -- .../src/eepp/ui/doc/languages/pascal.cpp | 2 -- .../src/eepp/ui/doc/languages/pico-8.cpp | 2 -- .../src/eepp/ui/doc/languages/pony.cpp | 4 +--- .../src/eepp/ui/doc/languages/postgresql.cpp | 2 -- .../src/eepp/ui/doc/languages/r.cpp | 2 -- .../src/eepp/ui/doc/languages/ring.cpp | 2 -- .../src/eepp/ui/doc/languages/rust.cpp | 2 -- .../src/eepp/ui/doc/languages/shellscript.cpp | 2 -- .../src/eepp/ui/doc/languages/tcl.cpp | 2 -- .../src/eepp/ui/doc/languages/toml.cpp | 2 -- .../src/eepp/ui/doc/languages/v.cpp | 2 -- .../src/eepp/ui/doc/languages/x86assembly.cpp | 2 -- .../src/eepp/ui/doc/languages/yuescript.cpp | 4 ---- src/tools/ecode/plugins/aiassistant/chatui.cpp | 3 ++- 41 files changed, 14 insertions(+), 89 deletions(-) diff --git a/src/eepp/ui/doc/languages/json.cpp b/src/eepp/ui/doc/languages/json.cpp index b6e797212..cbae8869f 100644 --- a/src/eepp/ui/doc/languages/json.cpp +++ b/src/eepp/ui/doc/languages/json.cpp @@ -8,8 +8,17 @@ void addJSON() { auto& sd = SyntaxDefinitionManager::instance()->add( { "JSON", - { "%.json$", "%.cson$", "%.webmanifest$" }, { + "%.json$", + "%.cson$" + "%.jsonc$", + "%.ipynb$", + "%.webmanifest$", + }, + { + { { "//.-\n" }, "comment" }, + { { "/%*", "%*/" }, "comment" }, + { { "(%b\"\")(:)" }, { "normal", "keyword", "operator" } }, { { "\"", "\"", "\\" }, "string" }, { { "'", "'", "\\" }, "string" }, diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/ada.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/ada.cpp index 89d29523d..88e3d819e 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/ada.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/ada.cpp @@ -17,8 +17,6 @@ void addAda() { { { "[%a_][%w_]*%f[(]" }, "function" }, { { "-?%d+[%d%.eE_]*" }, "number" }, { { "[%a_][%w_]*" }, "normal" }, - { { "%s+" }, "normal" }, - { { "[%a_][%w_]*" }, "symbol" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/awkscript.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/awkscript.cpp index 43a9af0f1..a7dece403 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/awkscript.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/awkscript.cpp @@ -28,8 +28,6 @@ void addAwkScript() { { { "%$[%d%$%a_@*][%w_]*" }, "keyword2" }, { { "([%a_%-][%w_%-]*)(%s*%f[(])" }, { "normal", "function", "normal" } }, { { "[%a_][%w_]*" }, "symbol" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/bazel.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/bazel.cpp index 7a5663a65..b7c07d6f3 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/bazel.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/bazel.cpp @@ -17,8 +17,6 @@ void addBazel() { { { "[%a_][%w_]*%f[(]" }, "function" }, { { "-?%d+[%d%.eE_]*" }, "number" }, { { "[%a_][%w_]*" }, "normal" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/bend.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/bend.cpp index 2d98b24fc..7dafa1203 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/bend.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/bend.cpp @@ -30,8 +30,6 @@ void addBend() { { { "0x[%da-fA-F]+" }, "number" }, { { "-?%d+[%d%.eE]*" }, "number" }, { { "-?%.?%d+" }, "number" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/blade.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/blade.cpp index f1cdfff08..cc47da762 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/blade.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/blade.cpp @@ -22,8 +22,6 @@ void addBlade() { { { "[%+%-=/%*%^%%<>!~|&]" }, "operator" }, { { "[%a_][%w_]*%f[(]" }, "function" }, { { "%a[%w_]+" }, "symbol" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/blueprint.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/blueprint.cpp index 832de1d50..63588d969 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/blueprint.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/blueprint.cpp @@ -22,8 +22,6 @@ void addBlueprint() { { { "([%w_-%.]+%s*)({)" }, { "normal", "keyword2", "normal" } }, { { "([%w_-%.]+%s*)([%w_-]+%s*{)" }, { "normal", "keyword2", "normal" } }, { { "[%w-_]+" }, "symbol" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/brainfuck.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/brainfuck.cpp index 96fd34e1b..a7e51b4e0 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/brainfuck.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/brainfuck.cpp @@ -19,8 +19,6 @@ void addBrainfuck() { { { "," }, "literal" }, { { "%." }, "string" }, { { "[^%-%.<>%+,%[%]]+" }, "comment" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/buzz.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/buzz.cpp index bd4b7da3f..4c54e7656 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/buzz.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/buzz.cpp @@ -20,8 +20,6 @@ void addBuzz() { { { "-?%d+[%d%.eE_]*" }, "number" }, { { "-?%.?%d+" }, "number" }, { { "[%a_][%w_]*" }, "normal" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/carbon.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/carbon.cpp index e04c3767a..0fb97dc01 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/carbon.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/carbon.cpp @@ -27,8 +27,6 @@ void addCarbon() { { { "-?%d+[%d%.eE_]*" }, "number" }, { { "-?%.?%d+" }, "number" }, { { "[%a_][%w_]*" }, "normal" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/clojure.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/clojure.cpp index 9d632c075..cff57939b 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/clojure.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/clojure.cpp @@ -32,8 +32,6 @@ void addClojure() { { { "-?%.?%d+f?" }, "number" }, { { "[!%#%$%%&*+./%<=>%?@\\%^|%-~:]" }, "operator" }, { { "[%a_'][%w_']*" }, "normal" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/crystal.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/crystal.cpp index b0af811f0..2dfc96b33 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/crystal.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/crystal.cpp @@ -26,8 +26,6 @@ void addCrystal() { { { ":[%w_]*" }, "symbol" }, { { "[%a_][%w_]*:[^:]" }, "keyword2" }, { { "[%a_][%w_]*" }, "symbol" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/elm.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/elm.cpp index be3bc8436..259b7a8d9 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/elm.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/elm.cpp @@ -21,8 +21,6 @@ void addElm() { { { "%.%." }, "operator" }, { { "[=:|&<>%+%-%*\\/%^%%]" }, "operator" }, { { "[%a_'][%w_']*" }, "symbol" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/fennel.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/fennel.cpp index e01957974..f4c963be2 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/fennel.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/fennel.cpp @@ -17,8 +17,6 @@ void addFennel() { { { "-?%.?%d+" }, "number" }, { { "%f[^(][^()'%s\"]+" }, "function" }, { { "[^()'%s\"]+" }, "symbol" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/fortran.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/fortran.cpp index 55262cbdf..7d4d0f010 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/fortran.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/fortran.cpp @@ -24,8 +24,6 @@ void addFortran() { { { "-?%d+[%d%.eE_]*" }, "number" }, { { "-?%.?%d+" }, "number" }, { { "[%a_][%w_]*" }, "normal" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { { "then", "keyword" }, { "public", "keyword" }, diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/fstab.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/fstab.cpp index ca6461867..d51cdf514 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/fstab.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/fstab.cpp @@ -18,8 +18,6 @@ void addFstab() { { { "%d+%.%d+%.%d+%.%d+" }, "string" }, { { " %d+ " }, "number" }, { { "[%w_]+" }, "symbol" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/graphql.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/graphql.cpp index 7b8b4af27..6b0507890 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/graphql.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/graphql.cpp @@ -22,8 +22,6 @@ void addGraphQL() { { { "(mutation%s*)([%a_][%w_]*[(])" }, { "normal", "keyword", "function" } }, { { "(:%s*%[*)([%a_,%s][%w_,%s]*)(%]*)([!]*)" }, { "normal", "symbol", "literal", "symbol", "operator" } }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/groovy.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/groovy.cpp index 0c975dfe9..064e2c64b 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/groovy.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/groovy.cpp @@ -29,8 +29,6 @@ void addGroovy() { { { "[A-Z]+_?[A-Z]+" }, "keyword2" }, { { "[%a_][%w_]*" }, "symbol" }, { { "[a-zA-Z]+%.+" }, "function" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/hare.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/hare.cpp index 889f8491d..27f9771c0 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/hare.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/hare.cpp @@ -20,8 +20,6 @@ void addHare() { { { "[%a_][%w_]*%f[(]" }, "function" }, { { "[%a_][%w_]*" }, "symbol" }, { { "^@" }, "keyword" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/haxe.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/haxe.cpp index 25d94aa2d..10d7ffdb0 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/haxe.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/haxe.cpp @@ -12,8 +12,6 @@ void addHaxe() { { { "#.*" }, "comment" }, { { "%-[%-%w_]*" }, "keyword" }, { { "(%.)(%u[%w_]*)" }, { "normal", "normal", "keyword2" } }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, {}, "#" } ); @@ -25,8 +23,6 @@ void addHaxe() { { { "%${", "}", "\\" }, "keyword", ".hx" }, { { "%$", "%s", "\\" }, "keyword", ".hx" }, { { "[^ ]" }, "string" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, {} } ) .setVisible( false ); @@ -37,8 +33,6 @@ void addHaxe() { { { { "[%[%]%(%)]" }, "string" }, { { "[%.%*%+%?%^%$%|%-]" }, "operator" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, {} } ) .setVisible( false ); @@ -72,8 +66,6 @@ void addHaxe() { { { "(:)(%u[%a_][%w_]*)" }, { "normal", "normal", "keyword2" } }, { { "@:[%a_][%w_]*%f[(]" }, "keyword" }, { { "%$type" }, "keyword" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { { "using", "keyword2" }, { "true", "literal" }, { "trace", "keyword" }, diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/htaccess.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/htaccess.cpp index 5e98a3dbc..6abc8579e 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/htaccess.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/htaccess.cpp @@ -36,8 +36,7 @@ void addHtaccessFile() { { { "%f[^%s!]%S*%$" }, "literal" }, { { "%f[^%s!]%b()" }, "literal" }, { { "[%a_][%w_-]*" }, "symbol" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, + }, { { "xml2EncDefault", "keyword" }, diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/julia.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/julia.cpp index 9fb5d07fe..b2d4feb18 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/julia.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/julia.cpp @@ -35,8 +35,6 @@ void addJulia() { { { "[%a_][%w_]*%f[(]" }, "function" }, { { "%g*!" }, "function" }, { { "[%a_][%w_]*" }, "symbol" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/lobster.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/lobster.cpp index d3e8398a4..de2cc8580 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/lobster.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/lobster.cpp @@ -24,8 +24,6 @@ void addLobster() { { { "[%+%-=/%*%^%%<>!~|&%?]" }, "operator" }, { { "[%a_][%w_]*%f[(]" }, "function" }, { { "[%a_][%w_]*" }, "symbol" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/moonscript.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/moonscript.cpp index 18e2e5130..d7a311de3 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/moonscript.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/moonscript.cpp @@ -27,8 +27,6 @@ void addMoonscript() { { { "@", "[%a_][%w_]*" }, "keyword2" }, { { "!" }, "keyword2" }, { { "[%p]" }, "keyword" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/objeck.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/objeck.cpp index e188f9620..6387e8bdb 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/objeck.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/objeck.cpp @@ -24,8 +24,6 @@ void addObjeck() { { { "[%a_][%w_]*%f[(]" }, "function" }, { { "@[%a_][%w_]*" }, "function" }, { { "[%a_][%w_]*" }, "symbol" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/odin.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/odin.cpp index df2556667..ed7f3525f 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/odin.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/odin.cpp @@ -28,8 +28,6 @@ void addOdin() { { { "[#@][%a_][%w_]*" }, "keyword2" }, { { "[#@]%b()" }, "keyword2" }, { { "[%a_][%w_]*" }, "symbol" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/openscad.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/openscad.cpp index 26c849ef0..732576754 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/openscad.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/openscad.cpp @@ -21,8 +21,6 @@ void addOpenSCAD() { { { "[%a_][%w_]*%f[(]" }, "function" }, { { "%$%a+" }, "keyword" }, { { "[%a_][%w_]*" }, "symbol" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/pascal.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/pascal.cpp index 2564880c8..ed3e2b5f3 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/pascal.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/pascal.cpp @@ -23,8 +23,6 @@ void addPascal() { { { ":=" }, "operator" }, { { "[%a_][%w_]*%f[(]" }, "function" }, { { "[%a_][%w_]*" }, "symbol" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/pico-8.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/pico-8.cpp index 825a8ab3a..a2ecd4c9b 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/pico-8.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/pico-8.cpp @@ -26,8 +26,6 @@ void addPICO8() { { { "[%a_][%w_]*%s*%f[(\"{]" }, "function" }, { { "[%a_][%w_]*" }, "symbol" }, { { "::[%a_][%w_]*::" }, "function" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/pony.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/pony.cpp index 4d443da86..e5246646f 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/pony.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/pony.cpp @@ -21,12 +21,10 @@ void addPony() { { { "0b[%da-fA-F]+" }, "number" }, { { "-?%d+[%d%_.eE]*" }, "number" }, { { "-?%.?[%d]+" }, "number" }, - { { "^[0-9]{1,3}((_[0-9]{3})+)?$" }, "number" }, + { { "[0-9]{1,3}((_[0-9]{3})+)?" }, "number", "", SyntaxPatternMatchType::RegEx }, { { "[%+%-=/%*%^%%<>!~|&?]" }, "operator" }, { { "[%a_][%w_]*%f[(]" }, "function" }, { { "[%a_][%w_]*" }, "symbol" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/postgresql.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/postgresql.cpp index e3028949b..3d1ba9612 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/postgresql.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/postgresql.cpp @@ -18,8 +18,6 @@ void addPostgreSQL() { { { "[%+%-=/%*%%<>!~|&@%?$#]" }, "operator" }, { { "[%a_][%w_]*%f[(]" }, "function" }, { { "[%a_][%w_]*" }, "symbol" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/r.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/r.cpp index 2a05fb228..9e161fde6 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/r.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/r.cpp @@ -19,8 +19,6 @@ void addR() { { { "0x[%da-fA-F]+" }, "number" }, { { "-?%d+[%d%.eE]*" }, "number" }, { { "-?%.?%d+" }, "number" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/ring.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/ring.cpp index 96560847c..2a4681d05 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/ring.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/ring.cpp @@ -29,8 +29,6 @@ void addRing() { { { "[%a_][%w_]*" }, "symbol" }, { { "%?" }, "keyword" }, { { ":[%a_][%w_]*" }, "literal" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/rust.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/rust.cpp index 5a599b66c..f6fcf8c47 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/rust.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/rust.cpp @@ -25,8 +25,6 @@ void addRust() { { { "[%a_][%w_]*!%f[%[(]" }, "function" }, { { "[%a_][%w_]*%f[(]" }, "function" }, { { "[%a_][%w_]*" }, "symbol" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/shellscript.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/shellscript.cpp index 530f76734..bacb002f5 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/shellscript.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/shellscript.cpp @@ -28,8 +28,6 @@ void addShellScript() { { { "$[%d$%a_@*][%w_]*" }, "keyword2" }, { { "[%a_%-][%w_%-]*[%s]*%f[(]" }, "function" }, { { "[%a_][%w_]*" }, "symbol" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/tcl.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/tcl.cpp index 5ab48a5f1..edc964ff0 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/tcl.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/tcl.cpp @@ -20,8 +20,6 @@ void addTcl() { { { "::[%a_][%w_]*" }, "function" }, { { "[%a_][%w_]*%f[:]" }, "function" }, { { "[%a_][%w_]*" }, "symbol" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/toml.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/toml.cpp index 5cf47d341..914bd1cd1 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/toml.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/toml.cpp @@ -28,8 +28,6 @@ void addToml() { { { "[%-+]?nan" }, "number" }, { { "[%-+]?inf" }, "number" }, { { "[a-z]+" }, "symbol" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/v.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/v.cpp index 2bcb1b074..4ffcab3c1 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/v.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/v.cpp @@ -28,8 +28,6 @@ void addV() { { { "[%a_][%w_]*" }, "symbol" }, { { "%$%s?[%a_][%w_]*" }, "keyword2" }, { { "%@%s?[%a_][%w_]*" }, "keyword2" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/x86assembly.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/x86assembly.cpp index 556440f28..6051bf413 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/x86assembly.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/x86assembly.cpp @@ -23,8 +23,6 @@ void addX86Assembly() { { { "[%a_][%w_]*:%W" }, "function" }, { { "[%a_][%w_]*" }, "symbol" }, { { "%.%.%a+" }, "normal" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/yuescript.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/yuescript.cpp index a20bc4f01..592507f46 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/yuescript.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languages/yuescript.cpp @@ -13,8 +13,6 @@ void addYueScript() { { { { "#{", "}", "\\" }, "keyword", "YueScript" }, { { "[^ ]" }, "string" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { @@ -91,8 +89,6 @@ void addYueScript() { { { "%[=*%[", "%]=*%]" }, "string" }, { { "[&<>%+-%*/=#%[%]!|?:~%%%.%^]+" }, "operator" }, { { "\\" }, "operator" }, - { { "%s+" }, "normal" }, - { { "%w+%f[%s]" }, "normal" }, }, { diff --git a/src/tools/ecode/plugins/aiassistant/chatui.cpp b/src/tools/ecode/plugins/aiassistant/chatui.cpp index de380d9ae..7780bfc8a 100644 --- a/src/tools/ecode/plugins/aiassistant/chatui.cpp +++ b/src/tools/ecode/plugins/aiassistant/chatui.cpp @@ -222,6 +222,7 @@ LLMChatUI::LLMChatUI( PluginManager* manager ) : mChatInput->setFoldDrawable( findIcon( "chevron-down", PixelDensity::dpToPxI( 12 ) ) ); mChatInput->setFoldedDrawable( findIcon( "chevron-right", PixelDensity::dpToPxI( 12 ) ) ); mChatInput->setAllowSelectingTextFromGutter( false ); + mChatInput->setFindReplaceEnabled( true ); mChatInput->setSyntaxDefinition( markdown ); @@ -905,7 +906,7 @@ void LLMChatUI::doRequest() { auto* thinking = editor->findByClass( "thinking" ); auto thinkingID = String::hash( String::format( "thinking-%p", thinking ) ); thinking->setVisible( true ); - thinking->setPosition( { PixelDensity::dpToPx( 8 ), PixelDensity::dpToPx( 4 ) } ); + thinking->setPosition( { PixelDensity::dpToPx( 8 ), PixelDensity::dpToPx( 3 ) } ); thinking->setInterval( [thinking] { thinking->rotate( 360 / 32 ); }, Seconds( 0.125 ), thinkingID );