Introduce @include

This commit is contained in:
Stephan Seitz 2020-05-17 17:07:27 +02:00
parent 57424533a7
commit f6bf56974e
3 changed files with 5 additions and 3 deletions

View file

@ -79,6 +79,7 @@ are optional and will not have any effect for now.
`@operator`
`@keyword`
`@exception`
`@include` keywords for including modules (e.g. import/from in Python)
`@type`
`builtin`

View file

@ -47,6 +47,7 @@ hlmap["exception"] = "Exception"
hlmap["type"] = "Type"
hlmap["type.builtin"] = "Type"
hlmap["structure"] = "Structure"
hlmap["include"] = "Include"
function M.attach(bufnr, ft)
local buf = bufnr or api.nvim_get_current_buf()

View file

@ -103,7 +103,7 @@
; Keywords
"as" @keyword
"as" @include
"assert" @keyword
"async" @keyword
"await" @keyword
@ -118,10 +118,10 @@
"exec" @keyword
"finally" @keyword
"for" @repeat
"from" @keyword
"from" @include
"global" @keyword
"if" @conditional
"import" @keyword
"import" @include
"lambda" @keyword
"nonlocal" @keyword
"pass" @keyword