leafOfTree
2ed782e422
Sync syntax from start
...
Syncing by block start patterns didn't restore states inside the
block, so syntax computed before a line was displayed, e.g. by
GetVueTag() or indent after jumping in a file, missed regions like a
multi-line css rule. This replaces the one-line block fix in the
previous commit.
Parsing from start takes ~190ms once for jumping to the end of a
6500-line file, and states are cached after that.
2026-10-20 01:18:18 +00:00
leafOfTree
b899ab9d54
Highlight Vue 3.3+ APIs and <script setup> macros ( #24 )
...
Add the APIs from https://vuejs.org/api/ that were missing, like
defineProps, defineEmits, defineModel, withDefaults, useTemplateRef
and toValue, and the options emits, expose, slots and serverPrefetch.
Also highlight them before type arguments, e.g.
defineProps<{ foo: string }>() or ref<number>(1).
2026-10-19 13:43:00 +00:00
leafOfTree
1e6923dcd2
Don't sync syntax to a block ending on the same line
...
A one-line block like <style>p { color: red; }</style> matched the
sync pattern of the block start, so when Vim synced syntax at or after
it, e.g. after jumping to a later line, the following blocks were
taken as inside the style block.
2026-10-19 13:42:16 +00:00
leafOfTree
04c3fb20ed
Load all tags after syntax instead of only style
2023-10-05 11:51:45 +08:00
leafOfTree
4d31393b03
Remove timer usage
2023-01-31 17:29:23 +08:00
leafOfTree
8d75429260
Fix syntax lost issue when using netrw :Vexplore
2023-01-31 15:31:52 +08:00
leafOfTree
ed318345cf
Simplify html syntax commands
2023-01-31 15:17:32 +08:00
leafOfTree
84ac1d2359
Highlight <script...> as htmlTagName instead of htmlSpecialTagName from built-in syntax
2022-10-11 14:16:21 +08:00
leafOfTree
b2bb4dd8f6
Fix miniprogram syntax containing blank
2022-03-03 15:27:17 +08:00
leafOfTree
469c43292d
Fix syntax error for directives without value
2021-11-05 17:50:11 +08:00
leafOfTree
3fa4bea6df
Fix keyword error from containedin pattern
2021-08-13 19:05:46 +08:00
leafOfTree
c248bd1488
Load syntax and then set syntax to fix syntax sync
2021-08-13 16:56:22 +08:00
leafOfTree
6e25aaf388
Fix syntax sync being cleared issue
2021-08-13 16:47:13 +08:00
leafOfTree
8d464e9506
Support vue3 API keywords
2021-08-13 16:29:57 +08:00
leafOfTree
ab96ba2585
Support global api syntax
2021-08-13 13:08:06 +08:00
leafOfTree
4dd559c860
Support vue3 composition api
2021-08-13 12:50:34 +08:00
leafOfTree
d15590dae2
Format code
2021-08-11 18:35:52 +08:00
leafOfTree
eb3bba0ccb
Support style v-bind syntax
2021-08-11 18:32:10 +08:00
leafOfTree
0e68102487
Improve multiple line tag syntax and custom tag indent
2021-08-04 11:14:15 +08:00
leafOfTree
44b0071e2d
Add custom tags
2021-08-02 15:02:30 +08:00
leafOfTree
3d2680a859
Support view block
2021-07-30 14:41:13 +08:00
leafOfTree
b2b08cda9d
Improve oneline block syntax
2021-06-02 13:51:42 +08:00
leafOfTree
c43bd87267
Support oneline block
2021-06-02 13:20:40 +08:00
leafOfTree
f1b7ea05b8
Backwards compatibility with init_indent
2021-04-16 14:46:11 +08:00
leafOfTree
6a94c30ec7
Add new 'initial indent' option
2021-04-16 13:33:56 +08:00
leafOfTree
87922641ad
Fix various indent issues
2021-04-15 18:49:29 +08:00
leafOfTree
3ed1e89f55
Defer indent load time
2021-04-15 13:10:22 +08:00
leafOfTree
ed7e1a9898
Use runtime typescript indent for javascript
2021-04-14 22:50:37 +08:00
leafOfTree
8d3c18621d
Set syntax sync by each block syntax
2021-04-14 10:51:25 +08:00
leafOfTree
255472b126
Comment out syn sync fromstart for now
2021-04-13 15:53:48 +08:00
leafOfTree
f460616735
Add patch for mustache syntax from vim-mustache-handlebars
2021-04-13 15:06:55 +08:00
leafOfTree
8e6080629b
Enable syntax sync fromstart
2021-04-13 15:05:37 +08:00
leafOfTree
c70cd332ad
Support template string in vue attr
2021-04-08 18:50:15 +08:00
leafOfTree
11c04aaf7b
Fix no highlight after loading session
2021-04-01 10:33:38 +08:00
leafOfTree
01e460244f
Fix syntax of template blocks inside template
2021-03-31 17:48:22 +08:00
leafOfTree
fc75f3c474
Fix template in pug indent error
2021-03-30 13:20:42 +08:00
leafOfTree
665d8a18b3
Fix syntax for template inside template
2021-03-30 10:29:56 +08:00
leafOfTree
d90b18e1c7
Update doc/message
2021-03-29 17:31:39 +08:00
leafOfTree
e1dab23589
Improve code and performance
2021-03-29 15:58:50 +08:00
leafOfTree
2b050c42c1
Refactor the whole plugin
2021-03-23 11:50:46 +08:00
leafOfTree
b24ce56361
Remove optional function argument
2021-03-12 17:03:34 +08:00
leafOfTree
9af7723bd1
Support custom blocks syntax and indent
2021-03-11 14:52:38 +08:00
leafOfTree
db71d38675
Fix vue3 keyword syntax for pangloss/vim-javascript
2021-02-22 16:56:17 +08:00
leafOfTree
d975ab169d
Update code comments
2020-12-31 16:21:22 +08:00
leafOfTree
017a4002a8
Use syn-match to highlight both transition and transition-group
2020-12-31 16:16:46 +08:00
leaf
04c117ef48
Update lifecycle hooks keyword
2020-12-29 13:57:20 +08:00
leafOfTree
1fefdc214c
Highlight transition attributes as htmlArg
2020-12-14 19:29:47 +08:00
leafOfTree
5a32d19c40
Extend cssValueNumber only for scss/sass
2020-12-02 15:17:44 +08:00
leafOfTree
7ab2e3b989
Extend cssValueNumber for scss/sass
2020-12-02 14:45:20 +08:00
leafOfTree
9f0ed056b6
Support Vue3 composition API syntax
2020-11-19 17:35:22 +08:00