summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* language-specs: Add support for BlueprintJames Westman2023-05-161-0/+34
|
* language-specs: Add support for todo.txt formatVictor Kareh2023-03-091-0/+8
| | | | | | | | | The todo.txt format is a simple set of rules that make todo.txt both human and machine-readable. The format supports priorities, creation and completion dates, projects and contexts. - Project website: http://todotxt.org - Format definition: https://github.com/todotxt/todo.txt
* New file: tests/syntax-highlighting/file.javaSylvain Chiron2023-02-261-0/+57
|
* c.lang: highlight binary numbersVlasta Vesely2023-01-161-0/+7
|
* tests: Add example Nix fileJan Tojnar2022-12-231-0/+50
|
* tests: add example awk fileAkbarkhon Variskhanov2022-08-281-0/+21
| | | | | Changes to be committed: new file: tests/syntax-highlighting/file.awk
* lean.lang: highlight attributesElias Aebi2022-08-261-2/+3
|
* lean.lang: fix highlighting of identifiersElias Aebi2022-07-261-3/+3
|
* tests: add syntax example for twigChristian Hergert2022-06-241-0/+23
| | | | This comes from some examples on https://twig.symfony.com/
* tests/meson.build: Clean up for Visual Studio buildsChun-wei Fan2022-06-241-3/+0
| | | | | | We do not need to include core_dep here, since Meson nowadays have much better support for `link_whole:` for Visual Studio, and it's been decently- support for a much longer time for Visual Studio 2015 Update 2.
* testsuite: move test-snippets to testsuiteChristian Hergert2022-05-023-165/+0
| | | | | This should really be run on every commit and therefore belongs in the testsuite directory.
* tests: unit-test for listing all snippetsGünther Wagner2022-05-022-2/+57
|
* perl.lang: fix POD =begin keywordMatt Merhar2022-05-011-0/+35
| | | | | | | | | | | | | | There were two issues: - The first regex was matching =end as well - The wrong capture variable was being referenced in the =end regex These led to =end being completely ignored, causing syntax highlighting to cease for anything after the initial =begin (including =cut). This also modifies the file.pl test cases to include a section of POD that'll break highlighting without this commit applied. An example of __END__ was added as well. The POD in the file additionally now renders properly with 'perldoc'.
* snippet: add gtk_source_snippet_new_parsed()Christian Hergert2022-04-031-0/+39
| | | | | | | This is a function that can create a new snippet by parsing the snippet format used in bundles. It happens to be able to parse a decent amount of language-server-protocol snippets as well, which should be what we aim for long-term to maximize re-use in IDE tooling such as Builder.
* tests: make snippet testsuite use g_testChristian Hergert2022-04-031-8/+20
|
* tests: fix <requires/> elements for GtkBuilderChristian Hergert2022-01-281-2/+2
|
* json.lang: Fix styles for floating point valuesTimothy Southwick2022-01-191-0/+1
| | | | | | | | | | | 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.
* vim: remove test-vimChristian Hergert2022-01-052-207/+0
| | | | | | | We don't need this anymore since we already added a vim toggle in test-widget. Supercedes !232
* python3.lang: add support for Python f-stringsRune Riksted2022-01-041-0/+15
| | | | Fixes #196
* tests: add margin to test-widgetChristian Hergert2021-12-261-0/+4
| | | | This helps catch various issues that might be margin related.
* vim: pass ^W commands to execute-command signalsChristian Hergert2021-12-131-1/+1
| | | | | This allows applications to be able to handle them and perform various split window movements.
* c.lang: support hexadecimal floating constantsElias Aebi2021-12-071-0/+1
|
* vim: add GtkSourceVimIMContextChristian Hergert2021-11-114-9/+279
| | | | | | | | | | | | | | | | | | | | | | | | 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
* build: fix compilation warning for GIRChristian Hergert2021-11-041-2/+2
| | | | | 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.
* tests/testsuite: Avoid g_auto*master-msvcChun-wei Fan2021-10-221-6/+12
| | | | This way, things will continue to build on Visual Studio.
* rst.lang: add new examplesChristian Hergert2021-10-191-0/+12
|
* spice.lang: add SPICE language specarchbugaboo2021-10-191-0/+149
|
* testwidget: remove unnecessary codeChristian Hergert2021-10-141-3/+0
| | | | We have .GtkSourceMap now
* testwidget: fix initial value for style schemeChristian Hergert2021-10-141-1/+1
|
* testwidget: copy margin position from view to mapChristian Hergert2021-10-141-0/+3
|
* testwidget: add map class to overview mapChristian Hergert2021-10-141-0/+3
| | | | This just allows playing with CSS styling from the preview.
* testwidget: add a separator beween mapChristian Hergert2021-10-141-1/+9
|
* testwidget: allow wider right marginChristian Hergert2021-10-141-1/+1
|
* tests: set default height/width for previewChristian Hergert2021-10-121-0/+2
|
* styleschemepreview: add GtkSourceStyleSchemePreviewChristian Hergert2021-10-112-0/+86
| | | | | | | | | | | This is a new widget that can be used to create custom style scheme choosers (in the hopes that applications start to unify on a visual representation of schemes). There will likely be more iteration here before release, but this gets things started. Fixes #223
* lean.lang: add LEAN language specificationeyelash2021-09-171-0/+15
| | | | https://leanprover.github.io/about/
* test-widget: add some marginChristian Hergert2021-08-091-0/+1
| | | | To test margin propagation to right.
* test-widget: hide vscrollbar when map is shownChristian Hergert2021-08-091-0/+22
|
* tests: use Adwaita scheme by defaultChristian Hergert2021-08-091-0/+6
|
* tests: remove frame from test-widgetChristian Hergert2021-08-091-17/+13
| | | | | | You really wouldn't want to do this in an app for performance reasons with rounded corners, so just remove it now that the bugs related with it were fixed in GTK's GL renderer.
* tests: add test that simply tests loading buffersChristian Hergert2021-07-192-0/+49
|
* jade.lang: Add test fileColin Kinloch2021-06-291-0/+22
|
* sh.lang: Fix short parameter expansionGaël Bonithon2021-06-011-0/+1
| | | | | `\%{identifier}` must match first for the parameter names starting with '_' to be properly highlighted.
* terraform.lang: add terraform languageOthmane El Warrak2021-03-191-0/+36
|
* star.lang: add STAR file format for scientific domainsMichael Gryk2021-03-111-0/+23
|
* hover: add GtkSourceHover supportChristian Hergert2021-03-102-2/+84
| | | | | | | | | | | This adds support for a GtkSourceHover, GtkSourceHoverProvider, GtkSourceHoverContext, and GtkSourceHoverDisplay objects. These can be used to provide interactive tooltips to code similar to those used by various editors integrating with language servers. Applications can register GtkSourceHoverProviders which can populate the contents of a GtkSourceHoverDisplay by adding widgets to it from their synchronous populate, or asynchronous populate_async() callbacks.
* tests: remove private struct from TestWidgetChristian Hergert2021-03-101-120/+101
|
* go.lang: make "0i" syntax highlight as integerPile Trade2020-11-291-1/+1
|
* tests: fix initialization with gtk4Christian Hergert2020-11-191-0/+2
| | | | This will get fixed in GTK 4 eventually, but allows us to run things now.
* run through codespellBilal Elmoussaoui2020-10-018-8/+8
|