mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-25 20:41:49 +03:00
Merge remote-tracking branch 'yerlaser/patch-2'
This commit is contained in:
commit
b37a282845
@ -39,14 +39,19 @@ provide-module dart %§
|
||||
|
||||
add-highlighter shared/dart regions
|
||||
add-highlighter shared/dart/code default-region group
|
||||
add-highlighter shared/dart/back_string region '`' '`' fill string
|
||||
add-highlighter shared/dart/double_string region '"' (?<!\\)(\\\\)*" fill string
|
||||
add-highlighter shared/dart/single_string region "'" (?<!\\)(\\\\)*' fill string
|
||||
add-highlighter shared/dart/double_string region '"' (?<!\\)(\\\\)*" group
|
||||
add-highlighter shared/dart/single_string region "'" (?<!\\)(\\\\)*' group
|
||||
add-highlighter shared/dart/comment region /\* \*/ fill comment
|
||||
add-highlighter shared/dart/comment_line region '//' $ fill comment
|
||||
|
||||
add-highlighter shared/dart/code/ regex %{-?([0-9]*\.(?!0[xX]))?\b([0-9]+|0[xX][0-9a-fA-F]+)\.?([eE][+-]?[0-9]+)?i?\b} 0:value
|
||||
|
||||
# String interpolation
|
||||
add-highlighter shared/dart/double_string/ fill string
|
||||
add-highlighter shared/dart/double_string/ regex \$\{.*?\} 0:value
|
||||
add-highlighter shared/dart/single_string/ fill string
|
||||
add-highlighter shared/dart/single_string/ regex \$\{.*?\} 0:value
|
||||
|
||||
evaluate-commands %sh{
|
||||
# Grammar
|
||||
keywords="abstract|do|import|super|as|in|switch|assert|else|interface|async"
|
||||
|
Loading…
Reference in New Issue
Block a user