summaryrefslogtreecommitdiff
path: root/test/highlight
AgeCommit message (Collapse)Author
2025-06-28Fix wrap interaction with show-whitespaces and test word wrapping moreMaxime Coste
Consider atom boundaries as word boundaries, which should be correct du to passes ordering. Fixes #5350
2025-06-26Rework WrapHighlighter to take replaced ranges into accountMaxime Coste
Replaced ranges will count towards the wrapping column but will not be split. Fixes #4883
2025-06-25Add yet another highlighter testMaxime Coste
2025-06-23Expand highlighting testsMaxime Coste
2024-08-08Delay NormalMode clearing of status line and info box to next idleMaxime Coste
A common pattern is for info/echo messages to be generated by idle hooks but the clearing of previous info/echo was done immediately on normal mode events. This led to flickering of the info box especially when a hook was repeatidly generating the same info (like moving a cursor in the same word where the hook reacts to the word under the cursor).
2024-04-27Adjust test/highlight/rust/valueJohannes Altmanninger
A recent commit highlights char literals as value (default red) instead of yellow.
2022-07-13Re-work line trimming to fix issues with column highightersMaxime Coste
Instead of triming only buffer ranges, add a trim_from method to display line to keep the initial N columns, we know how many columns are used by non-trimable widgets in DisplaySetup::widget_columns so we can just pass this. Also restore the previous logic for face merging Fixes #4670
2022-07-12Fix past-the-eol column highlighter getting highlighted as buffer rangeMaxime Coste
Make the column highlighter faces final, and change final logic to give precedence to the base face when both the base and new face are final. Fixes #4669
2022-07-10Refactor highlighting logicMaxime Coste
Always start with full buffer lines and trim the display buffer at the very end, treat non-range display atoms as non-trimable in that case and keep track of how many columns are occupied by "widgets" such as line numbers or flags. Fixes #4659
2021-11-02Remove .kak_history file that seems to have been committed by mistakeSidharth Kshatriya
2021-09-07Add support for curly underline and separate underline colorMaxime Coste
Add support for a third color in face definition that controls the underline and a 'c' attribute for curly underline (that takes precedence over 'u' if both are specified) Allow empty colors to mean default, so that `,,red+u` means the same as `default,default,red+u` Fixes #4138
2021-05-02add TODO comment highlightingSkyler Hawthorne
2021-05-01add tests for rust let statementsSkyler Hawthorne
2021-05-01fix rust pub highlightSkyler Hawthorne
2021-04-30Fix rust highlighting testsMaxime Coste
2020-07-31Fix escaping of single quotes in rust value highlighting testMaxime Coste
2020-07-09Split rust comment testsIvan Tham
2020-07-09Fix rust character highlightIvan Tham
2020-07-09Fix rust comment endIvan Tham
2020-07-09Fix rust comment testIvan Tham
2020-07-09Fix rust doctest non-hidden macro highlightIvan Tham
2020-05-31Highlight doc tests in rustIvan Tham
Feels a big laggy when system overloaded
2020-05-29Fix unintended interpretation of ranges length syntaxMaxime Coste
Ranges specified with a +<length> were inconsistent, with +0 meaning an empty range, while +1 meant a two character long range (first character + the following one). Change that to mean a single character. Fixes #3479
2020-04-27Support multi-line replace-rangesMaxime Coste
This likely has lots of rough edges, but should be an initial proof of concept to support folding.
2020-04-27Do not replace partially selected ranges in replace-ranges highlighterMaxime Coste
Partially selected ranges should not be replaced to make it possible to see what is actually selected.
2020-04-27Fix highlighting empty ranges at end of line and begin of lineMaxime Coste
2019-12-17test: number-lines highlighter now reserves 2 digits by default.Tim Allen
Fixes regression caused by #3261.
2019-10-13test: Allow expect-style UI tests, testing any varJason Felice
2019-04-28Fix parsing of faces with a base but no attributesMaxime Coste
2019-04-23Change faces alias to be a base that can be modifiedMaxime Coste
Using <fg>,<bg>+<attr>@<base> will apply the given fg color, bg color and attributes on top of base dynamically. Simply giving <base> is a shorthand for default,default@<base>. Inspired by the discussion in #2862
2019-01-03Add support for named captures to the regex impl and regex highlighterMaxime Coste
ECMAScript is adding support for it, and it is a pretty isolated change to do. Fixes #2293
2018-10-15Fix handling of capture matching in region highlighterMaxime Coste
Also extend the highlight/regions test to validate that. Thanks to lenormf for reviewing my change and finding this bug.
2018-07-08Rename highlighters that used an underscore to use a dashMaxime Coste
For example `show_matching` is now `show-matching`.
2018-07-05Make recurse regex opt-in with a -recurse switch instead of opt-outMaxime Coste
2018-07-05Fix bug in recursive region highlightingMaxime Coste
2018-07-05Fix tests and required scripts to get back to green make testMaxime Coste
2018-05-19test/run: Rename "display" expected ui output file as "ui-out"Maxime Coste
2018-04-29Fix tests after changes to json_ui outputMaxime Coste
2018-04-23Change client default name: "unnamed0" → "client0"Delapouite
2017-10-28Move highlighters into ScopesMaxime Coste
That means we can now have highlighters active at global, buffer, and window scope. The add-highlighter and remove-highlighter syntax changed to take the parent path (scope/group/...) as a mandatory argument, superseeding the previous -group switch.
2017-10-12Refactor column highlighter to make it more robustMaxime Coste
Support arbitrary orders for column highlighters (it was previously failing when column highlighters were not applied in column order). Fix show_matching tab handling at the same time (horizontal scrolling, tab characters and show_matching were behaving badly). Window highlighting now runs user highlighters, then built-ins for each phases, instead of running all phases for user highlighters, then all phases for built-ins. We now consider unprintable character to be 1-column width as we know we will display them as "�". Fixes #1615 Fixes #1023
2017-09-18Avoid wrapping between punctuation and wordMaxime Coste
Fixes #1550
2017-06-09Rework partial line display logicMaxime Coste
Instead of highlighting full lines and then trim them to make them fit in the window, highlight only the visible portion, and rely on the compute_display_setup system introduced for wrapping to setup our buffer range correctly
2017-04-12Fix tests after addition of the set_cursor UI methodMaxime Coste
2017-03-11Increase modelinefmt configuration powerDan Rosén
2017-01-04update command namesAlex Leferry 2
2016-12-16Change the test session name to avoid hitting the unix socket path length limitMaxime Coste
On travis-ci, it seems the combination of a set TMPDIR and long sessions names makes the test framework hit the path lenght limit.
2016-09-04Rework client quitting and handling of remote errorsMaxime Coste
Client quitting no longer immediately unwinds, client is just pushed for deletion until we get back to the main loop, similarly to what happens for buffer and window deletion.
2016-04-11Fix regions display testMaxime Coste
2016-03-08Add an initial highlighting testMaxime Coste