| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|\
| |
| |
| |
| | |
testsuite: fix reversed logic in the previous change
See merge request GNOME/gtksourceview!309
|
|/ |
|
|\
| |
| |
| |
| | |
testsuite: set the new test-language-specs as not-installable
See merge request GNOME/gtksourceview!308
|
|/
|
|
| |
it's intended to be used as installed tests but in CI instead
|
| |
|
| |
|
|\
| |
| |
| |
| |
| |
| | |
gutterrenderermarks: avoid infinite loop
Go to next mark if there are no attributes on mark.
See merge request GNOME/gtksourceview!291
|
|/
|
|
| |
Go to next mark if there are no attributes on mark.
|
|
|
|
|
|
|
|
|
| |
llvm.lang: Add missing 'sge' keyword
See merge request GNOME/gtksourceview!294
(cherry picked from commit c082de7bfd0afa904e11d48c17586b21aa556469)
73e7ba9b llvm.lang: Add missing 'sge' keyword
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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
|
|\
| |
| |
| |
| | |
testsuite: backport test-language-specs
See merge request GNOME/gtksourceview!273
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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).
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
| |
vala.lang: Fixed regex detection
See merge request GNOME/gtksourceview!251
(cherry picked from commit 66a073207d4d633962f4e3fcc6edb3c8bdba5ec1)
de0c1b01 vala.lang: Fixed regex detection
|
| |
|
|
|
|
| |
Fixes #258
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
This was missing from the translation from solarized-dark.
|
|
|
|
|
| |
These match the style fixes to solarized-dark that make it closer to
upstream Solarized as well as improving GTK-DOC styling.
|
|
|
|
|
| |
This contains a number of improvements and compatability fixes compared
to solarized upstream. Additionally some GTK-DOC style improvements.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
| |
This allows style schemes to alter the style with rust:lifetime and treat
them differently than keywords.
|
|
|
|
|
| |
This is needed for GJS and other GNOME related JavaScript projects. It can
be useful for other JavaScript systems programming implementations too.
|
|\
| |
| |
| |
| | |
Merge branch 'guess-filename' into 'gtksourceview-4-8'
See merge request GNOME/gtksourceview!236
|
|/
|
|
|
|
|
|
|
| |
annotate `guess_language` parameter as filename
See merge request GNOME/gtksourceview!235
(cherry picked from commit 37af3e1df3d185cc0d1fd347fb9b5ae29559e857)
093fa194 annotate `guess_language` parameter as filename
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
cpp.lang: remove redundant keywords
See merge request GNOME/gtksourceview!231
(cherry picked from commit 837a44e9878cdd3c04471f056797b0f9e90f13d6)
0f03a509 cpp.lang: remove redundant keywords
|