Maxime Coste
5e6077acc2
html.kak: Change </...> align hook to only run after inserting '>'
...
Improve the hook to support nesting of tags as well.
2017-10-30 17:04:54 +11:00
Maxime Coste
d49555fc75
Move highlighters into Scopes
...
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-28 13:43:04 +08:00
Maxime Coste
0fa59e5fd2
rc/: Tweak some regexes to be compatible with our impl limitations
...
The upcoming custom implementation does not support arbitrary lookarounds,
and other advanced regex features. Simplify the regexes to avoid those.
2017-10-25 10:27:39 +08:00
Maxime Coste
80d661e6a7
rc/: More consistent uses of regex syntax
...
Always use \A \z for subject start/end, always \b for word boundaries
2017-10-25 10:27:25 +08:00
Frank LENORMAND
4f8211ecea
rc base html: Highlight attributes with no value
2017-08-29 14:17:28 +03:00
Frank LENORMAND
eb0786e001
rc base html: Highlight the DOCTYPE and tag attributes
2017-08-26 11:28:56 +03:00
Maxime Coste
5ad4499503
Fix naming conventions in bundled scripts
...
Do not use _ prefix for hidden commands, use - as a word separator
in command names.
2017-01-13 01:00:43 +00:00
Maxime Coste
91a56c11fe
Various auto indent fixes regarding wrong use of x instead of <a-x>
2017-01-13 00:50:03 +00:00
Alex Leferry 2
671b50bb52
update command names
2017-01-04 13:04:27 +01:00
Maxime Coste
85cd27138d
Remove mimetype option for good
...
file.kak now is responsible for mapping whatever mimetype file uses
to the filetype that Kakoune uses.
Fixes #975
Fixes #979
2016-12-14 13:40:00 +00:00
Frank LENORMAND
0c4c7ba240
Support xml based code in html.kak
...
This commit extends the range of mimetypes detected in `html.kak` to the
following:
* text/html
* text/x-html
* text/xml
* application/xml
* application/…+xml (e.g. xhtml, rss)
Static .xml file will also be highlighted as HTML.
2016-11-22 11:07:53 +03:00
Frank LENORMAND
5db1d1beef
Move the commenting variables back to commenting.kak
...
Initialising the `comment_line_chars` and `comment_selection_chars` variables
in language support scripts created a hard dependency of those scripts
to `commenting.kak`, which would create errors when this script was not
loaded, e.g. when running tests.
2016-10-14 22:12:01 +03:00
Maxime Coste
1b9c8b9cf2
Fix hool -> hook in rc files
2016-10-01 14:09:59 +01:00
greduan
a68f5f20a1
Add highlight group to highlighters rmhl hooks
2016-09-28 08:45:01 +02:00
greduan
6c6359de93
Add highlight group to highlighters addhl hooks
2016-09-28 08:25:02 +02:00
Maxime Coste
3f74dd2924
Remove uses of \< and \>, always use std regex compatible \b
2016-04-21 20:43:17 +01:00
Maxime Coste
fef0277998
Reorganise rc/ into subdirectories
...
* core: set of tools to work on kakoune source code
* base: very common languages and tools
* extra: less common languages and tools
2016-01-29 09:03:23 +00:00