| 1 |
hook global WinCreate .* %{ |
| 2 |
require-module python |
| 3 |
add-highlighter window/dotdrop regions |
| 4 |
|
| 5 |
add-highlighter window/dotdrop/expression region '\{\{@[@]' '[@]@\}\}' group |
| 6 |
add-highlighter window/dotdrop/statement region '\{%@[@]' '[@]@%\}' group |
| 7 |
add-highlighter window/dotdrop/comment region '\{#@[@]' '[@]@#\}' fill comment |
| 8 |
|
| 9 |
add-highlighter window/dotdrop/expression/ fill variable |
| 10 |
add-highlighter window/dotdrop/statement/ fill variable |
| 11 |
|
| 12 |
add-highlighter window/dotdrop/expression/ ref python |
| 13 |
add-highlighter window/dotdrop/statement/ ref python |
| 14 |
|
| 15 |
add-highlighter window/dotdrop/expression/ regex '\{\{@[@]|[@]@\}\}' 0:block |
| 16 |
add-highlighter window/dotdrop/statement/ regex '\{%@[@]|[@]@%\}' 0:block |
| 17 |
add-highlighter window/dotdrop/statement/ regex 'endfor|endif' 0:keyword |
| 18 |
} |