summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* bufferoutputstream: be defensive about dereferencing nul bytegtksourceview-4-8Christian Hergert2023-04-271-1/+2
| | | | | | | | If we don't own the buffer, then we don't have a guarantee that the buffer is one byte bigger than any count/length we've received. Mke sure to only dereference that byte when we do. Related #309
* Merge branch 'gsv5_fix_mark_prev_nullable' into 'master'Christian Hergert2023-03-201-1/+1
| | | | | | | | | mark: fix nullable introspection for category parameter See merge request GNOME/gtksourceview!318 (cherry picked from commit 5412a78e00ec2cb6bd0ee072ddec11681d0090ab) d78d22ec gtk_source_mark_prev: 'category' parameter is nullable
* Merge branch 'specstest-not-installed' into 'gtksourceview-4-8'Christian Hergert2023-01-121-2/+2
|\ | | | | | | | | testsuite: fix reversed logic in the previous change See merge request GNOME/gtksourceview!309
| * testsuite: fix reversed logic in the previous changeSebastien Bacher2023-01-121-2/+2
|/
* Merge branch 'specstest-not-installed' into 'gtksourceview-4-8'Sébastien Wilmet2023-01-121-3/+4
|\ | | | | | | | | testsuite: set the new test-language-specs as not-installable See merge request GNOME/gtksourceview!308
| * testsuite: set the new test-language-specs as not-installableSebastien Bacher2023-01-111-3/+4
|/ | | | it's intended to be used as installed tests but in CI instead
* Update Georgian translationEkaterine Papava2022-12-051-20/+29
|
* Update Icelandic translationSveinn í Felli2022-11-301-152/+143
|
* Merge branch 'wip/albfan/gtk3-source-mark-no-attr' into 'gtksourceview-4-8'Christian Hergert2022-11-181-31/+29
|\ | | | | | | | | | | | | gutterrenderermarks: avoid infinite loop Go to next mark if there are no attributes on mark. See merge request GNOME/gtksourceview!291
| * gutterrenderermarks: avoid infinite loopAlberto Fanjul2022-11-181-31/+29
|/ | | | Go to next mark if there are no attributes on mark.
* Merge branch 'llvm-sge' into 'master'Christian Hergert2022-11-071-0/+1
| | | | | | | | | llvm.lang: Add missing 'sge' keyword See merge request GNOME/gtksourceview!294 (cherry picked from commit c082de7bfd0afa904e11d48c17586b21aa556469) 73e7ba9b llvm.lang: Add missing 'sge' keyword
* Release 4.8.44.8.4Sébastien Wilmet2022-11-012-2/+2
|
* NEWS file: write all news so farSébastien Wilmet2022-11-011-0/+7
|
* Update Turkish translationSabri Ünal2022-09-181-2389/+151
|
* Update Hebrew translationYosef Or Boczko2022-08-221-15/+1
|
* Revert "language-specs: add 'text' to def.lang"Sébastien Wilmet2022-07-291-3/+0
| | | | | | | | | | | | | | | | | This reverts commit 452af6eb8fb5b2f8345a5029a4c295fda171d617. No longer needed, latex.lang doesn't use it anymore, it was added to latex.lang by mistake. Other reasons include: - Adding things to def.lang should be done with caution, because any other lang file can depend on it and it can be hard to remove afterwards. There can also be external lang files. I don't think def.lang is part of the API "contract" of GSV, but still. - Normal (general) text should not be highlighted in the first place. The style schemes are there for changing the style/color of normal text.
* latex.lang: revert two commitsSébastien Wilmet2022-07-291-9/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | Revert "latex.lang: fix bug for environment name (non greedy)" This reverts commit c83d75c0214faf161966e9440211c3331bbcbd2e. Revert "latex.lang: add style for name of class, package and environment" This reverts commit 8536d1be1424889a11a229cbfa5c93b38b58beb4. The two commits were related, since the bug fix was for the first one. Reasons include: - The goal of a *.lang file in GtkSourceView is not to make a file as colorful as possible. Adding different colors than normal text there don't add much value to me. It can even be misleading to add color when it's wrong (the syntax would be good, but only with context we would know that it's wrong, and doing a full context analysis is beyond the scope of a *.lang file, after all it's not a full compiler). - def:text didn't exist (and it's also a hint that this should be normal text, i.e. not highlighted). The latex class-name, pkg-name and env-name are not used by any standard style scheme files, so everything should be good from the GSV point of view.
* Add Georgian translationZurab Kargareteli2022-07-262-0/+699
|
* styles: classic and tango: don't use #rgba colors, use palette's colorsSébastien Wilmet2022-07-142-3/+3
| | | | | | | | | | | | | | | | | | | | (1) Don't use rgba with the alpha channel, I think it needs some bug fixes in the code, see https://gitlab.gnome.org/GNOME/gtksourceview/-/issues/280 "GSV 4: classic and tango style schemes: bug with gutter's background color becoming all white" when several tabs are opened in the text editor. (2) For the color replacements, in tango use the palette's color (it's a darker gray, which is easier to distinguish from the main area white background). For the "Global Settings", have exactly the same colors between classic and tango. (The classic palette lacks the aluminium colors). Fixes https://gitlab.gnome.org/GNOME/gtksourceview/-/issues/280 Closes https://gitlab.gnome.org/GNOME/gtksourceview/-/merge_requests/272
* Merge branch 'wip/chergert/test-specs-4-8' into 'gtksourceview-4-8'Sébastien Wilmet2022-07-144-1/+102
|\ | | | | | | | | testsuite: backport test-language-specs See merge request GNOME/gtksourceview!273
| * cuda.lang: fix style-ref for kernel-callChristian Hergert2022-07-141-1/+1
| | | | | | | | | | | | | | This was mapping to latex:display-math, but since that isn't loaded by time this is accessed, it doesn't exist to be referenced. Some effort may be needed to handle these more robustly in the future.
| * language-specs: add 'text' to def.langChristian Hergert2022-07-141-0/+3
| | | | | | | | | | | | This isn't ideal, but we do have specs which reference it already and can cause warnings. So might as well just add "text" which is unused to silence the warning in latex.lang.
| * testsuite: backport test-language-specsChristian Hergert2022-07-142-0/+98
|/ | | | | | | | | This adds a test to the testsuite that tries to load every language-spec that is bundled with GtkSourceView. It generally catches errors that would cause GtkSourceView to throw warnings or critical errors when loading. Currently, it fails due to latex.lang missing a def:text style which we can cherry-pick the fix from 5.x for.
* doap: become again a co-maintainerSébastien Wilmet2022-06-051-0/+7
| | | | | | | | I've discussed things with Christian by email, and I think we've resolved the frustrations that I had in the past. Sorry for all the situation. At first I would like to focus more on GSV 4 (so for GTK 3).
* Merge branch 'add-match-case' into 'master'Christian Hergert2022-05-191-0/+2
| | | | | | | | | | | Add match and case keywords to python language file Closes #267 See merge request GNOME/gtksourceview!260 (cherry picked from commit 6eebe3b93cd368401cf4a6ded6cec00c55182ea1) 04be12a6 Add match and case keywords to python language file
* Merge branch 'unicode-literals' into 'master'Christian Hergert2022-04-271-3/+5
| | | | | | | | | | c.lang: highlight C11 Unicode literals See merge request GNOME/gtksourceview!256 (cherry picked from commit e5166ad4625cf1f959537754768d7a40f38de4a3) 94592d7b c.lang: highlight C11 Unicode literals 67e44204 c.lang: highlight C99 Unicode escapes
* Add Abkhazian translationNaala Nanba2022-04-072-0/+698
|
* Merge branch 'master' into 'master'Christian Hergert2022-03-291-1/+1
| | | | | | | | | vala.lang: Fixed regex detection See merge request GNOME/gtksourceview!251 (cherry picked from commit 66a073207d4d633962f4e3fcc6edb3c8bdba5ec1) de0c1b01 vala.lang: Fixed regex detection
* Update Bulgarian translationAlexander Shopov2022-03-251-2972/+2031
|
* kate.xml: set cursor style to avoid inheritingChristian Hergert2022-03-211-0/+1
| | | | Fixes #258
* Release GtkSourceView 4.8.34.8.3Christian Hergert2022-03-182-1/+9
|
* Update Croatian translationGoran Vidović2022-03-031-2/+2
|
* Update Croatian translationGoran Vidović2022-03-031-111/+157
|
* Update Icelandic translationSveinn í Felli2022-01-291-15/+15
|
* Add Icelandic translationSveinn í Felli2022-01-292-0/+739
|
* Update Hebrew translationYosef Or Boczko2022-01-201-24/+21
|
* json.lang: Fix styles for floating point valuesTimothy Southwick2022-01-192-6/+7
| | | | | | | | | | | This fixes a bug where characters from the start of a floating point value up to the second character before the decimal point or exponent would be highlighted as integer values. This was noticeable in themes that differentiate between the two numeric types. The json test file has been updated to verify this change. Fixes #250.
* solarized-light.xml: make functions blueChristian Hergert2022-01-141-0/+3
| | | | This was missing from the translation from solarized-dark.
* solarized-light.xml: apply style fixesChristian Hergert2022-01-141-1/+20
| | | | | These match the style fixes to solarized-dark that make it closer to upstream Solarized as well as improving GTK-DOC styling.
* solarized-dark.xml: backport style improvementsChristian Hergert2022-01-141-1/+23
| | | | | This contains a number of improvements and compatability fixes compared to solarized upstream. Additionally some GTK-DOC style improvements.
* c.lang: place type keywords in separate styleChristian Hergert2022-01-141-3/+8
| | | | | | | | | | This allows for styling the type keywords differently (but falling back to the same behavior as before by referencing c:keyword) so that we can make style schemes such as solarized more closely match their upstream counter- parts. For example, in Solarized (VIM at least), `if` and another keywords are green except for typedef/struct/enum/union which are yellow.
* gtk-doc.lang: fix styles for subpatternsChristian Hergert2022-01-141-3/+3
| | | | | | The patterns must have changed because these were not mapped to the appropriate types, meaning that if you styled them in a style-scheme differently, you wouldn't get the highlighting you'd expect.
* Update Hebrew translationYosef Or Boczko2022-01-141-2984/+1875
|
* rust.lang: allow styling selfChristian Hergert2022-01-011-1/+2
|
* rust.lang: add indirect style for lifetimeChristian Hergert2022-01-011-1/+2
| | | | | This allows style schemes to alter the style with rust:lifetime and treat them differently than keywords.
* javascript.lang: allow shebang in javascriptChristian Hergert2022-01-011-0/+1
| | | | | This is needed for GJS and other GNOME related JavaScript projects. It can be useful for other JavaScript systems programming implementations too.
* Merge branch 'cherry-pick-37af3e1d' into 'gtksourceview-4-8'Christian Hergert2021-12-281-1/+1
|\ | | | | | | | | Merge branch 'guess-filename' into 'gtksourceview-4-8' See merge request GNOME/gtksourceview!236
| * Merge branch 'guess-filename' into 'master'Christian Hergert2021-12-281-1/+1
|/ | | | | | | | | annotate `guess_language` parameter as filename See merge request GNOME/gtksourceview!235 (cherry picked from commit 37af3e1df3d185cc0d1fd347fb9b5ae29559e857) 093fa194 annotate `guess_language` parameter as filename
* Merge branch 'wip/andyholmes/add-pyi-highlighting' into 'master'Christian Hergert2021-12-191-1/+1
| | | | | | | | | python3.lang: add *.pyi to the list of extensions for Python3 See merge request GNOME/gtksourceview!234 (cherry picked from commit 372ff709078d0609b2aa084bd827490ee44ce6bb) f384fa35 python3.lang: add *.pyi to the list of extensions for Python3
* Merge branch 'cpp-redundancy' into 'master'Christian Hergert2021-12-082-11/+1
| | | | | | | | | cpp.lang: remove redundant keywords See merge request GNOME/gtksourceview!231 (cherry picked from commit 837a44e9878cdd3c04471f056797b0f9e90f13d6) 0f03a509 cpp.lang: remove redundant keywords