| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
This reverts commit 2fce4e13d0cf6469684995c9e2a1c503e3cf889e.
|
|
|
|
|
|
|
| |
This is a simple GListModel that attempts to snapshot a range of items in
an underlying GListModel between calls to hold(pos,len) and release(). The
goal here is to have list stability during a frame clock cycle regardless
of what the underlying model is doing.
|
|
|
|
| |
This wasn't translated to GtkSourceView style when imported.
|
|
|
|
|
|
| |
This makes sure that we walk strings which are expected as UTF-8 by
characters so we don't split the multi-byte character. However, if
G_REGEX_RAW is set, walk by byte.
|
| |
|
|
|
|
|
|
|
| |
This requires on state within the testsuite directory, and therefore cannot
be used for system installed tests.
Fixes #291
|
|
|
|
|
|
|
| |
Not all of these are intended to be used as installed tests, but rather
to be used by CI to ensure that merge requests don't regress features.
Fixes #288
|
|
|
|
|
|
|
|
|
| |
If we are running out of tree, we still want to use languages and RelaxNG
schema from the source tree. But if we do not have access to that, we can
fallback to the installation prefix (which is now handled in
GtkSourceLanguageManager).
Fixes #287
|
|
|
|
|
| |
That way we don't need to include paths for TOP_SRCDIR to get access to
the def.lang styles.
|
|
|
|
|
|
|
| |
We need to flush out any pending snippet text when parsing from strings
or we risk loosing the final chunk.
Fixes #252
|
| |
|
|
|
|
|
|
| |
If we discover a language and expected NULL, it is handy to see what
language failed from the CI runner so that we can easily point to it
from merge requests.
|
|
|
|
|
|
|
| |
There is sadly no support for g_autoptr() on Visual Studio at this time.
Hopefully things will change if Jussi's proposal gets accepted eventually[1].
[1]: https://developercommunity.visualstudio.com/t/add-support-for-gcc-like-cleanup-attribute-for-pla/1187001
|
|
|
|
|
| |
Now that we (more correctly) have vim registers shared between GtkSourceVim
stacks, we need to reset them before each test case.
|
|
|
|
|
|
|
|
| |
The two strv should be compared in such a way that the complete set is in
both strv but in any order and no more. Just a general set theory
comparison of the two strv.
Based on suggestion from Sébastien Wilmet on discourse.gnome.org.
|
|
|
|
| |
This reverts commit 83bd6880fc06775faa7131dd015fd83b0d5cb7c3.
|
|
|
|
|
| |
These need to be shared so that you can yank/paste between views without
having to go to the system clipboard.
|
|
|
|
|
| |
This should really be run on every commit and therefore belongs in the
testsuite directory.
|
| |
|
|
|
|
|
|
|
| |
This finishes the support for loading language files via resources and
more thouroughly tests it.
Fixes #253
|
|
|
|
|
|
|
| |
This allows you to specify a resource:///path/ to load language specs
from without having to install them to the system.
Fixes #253
|
|
|
|
| |
Related #43
|
|
|
|
|
|
| |
Avoid any side-effects from the system installation or user schemes.
Fixes #244
|
| |
|
|
|
|
|
|
| |
We try to cache some of this information to make it faster for us to use
from various parts of GtkSourceView at runtime. This cleans up the naming
so it is significantly less confusing to read foreground vs background.
|
| |
|
| |
|
| |
|
|
|
|
| |
Fixes #237
|
|
|
|
|
|
| |
This fixes a situation like 4I at position 0 due to inclusivity of the
first-char motion. We only need to apply inclusivity when we are applying
a change (which implies a selection motion).
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This adds a new GtkIMContext implementation that attempts to emulate
a modern Vim experience. It can be used with a GtkSourceView by
connecting it to a GtkEventControllerKey and adding it to a view.
This is an initial implementation and could use further work on
matching semantics with Vim. However it has a number of features
beyond what was implemented in GNOME Builder.
Various features supported by GtkSourceVimIMContext include:
- Normal, Insert, Replace, Visual, and Visual Line modes
- Support for an integrated command bar and current command preview
- Search and replace
- Motions and Text Objects
- History replay
- Jumplists within the current file
- Registers including the system and primary clipboards
- Creation and motion to marks
- Some commonly used Vim commands
Fixes #233
|
|
|
|
|
| |
We don't need to pass our deprecation flags to everything the project
compiles as some of that is generated by meson and is out of our control.
|
|
|
|
| |
This way, things will continue to build on Visual Studio.
|
| |
|
|
|
|
| |
This is the test case we needed from #190 to actually verify a bug fix.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When porting to PCRE2, we only implemented the syntax highlighting engine
because there was a lot to port. That meant we used PCRE for search
contexts (via GRegex), but PCRE2 for highlighting.
Now that we have enough implementation in our PCRE2 wrapper, we can make
use of ImplRegex for search contexts too.
It's possible we have some fallout, but for what I've seen in the wild
thus far, the bases seem to be covered.
It's unlikely that we'll backport this to GtkSourceView 3.x or 4.x series.
However, if there is enough interest for someone to do that work and
really test it on platforms in the wild, we'd be willing to manage that
upstream with them.
Fixes #138
|
|
|
|
| |
We need additional work to make things match exactly with JIT enabled.
|
|
|
|
|
| |
The goal here is to be able to use PCRE2 from search-context, so we want
to test that usage to find any issues.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
This is a barebones test to make sure that we can load some of our files
from the tests/syntax-highlighting/ directory. Ideally, we would process
more of this so we can find errors with PCRE2 loading, but this is a first
step in that direction.
|
|
|
|
|
| |
This doesn't hold up everywhere depending on the content engine
behind things in GLib. So we can't guarantee this on Mac.
|