22 lines
497 B
Text
22 lines
497 B
Text
/-- Index syntax categoy -/
|
|
declare_syntax_cat index
|
|
|
|
--v textDocument/hover
|
|
syntax "foo " term prio index : term
|
|
--^ textDocument/hover
|
|
--^ textDocument/hover
|
|
namespace Foo
|
|
|
|
/-- Value syntax category -/
|
|
declare_syntax_cat value
|
|
|
|
syntax "bla " value : term
|
|
--^ textDocument/hover
|
|
|
|
end Foo
|
|
|
|
macro "boo " : term => `(0)
|
|
--^ textDocument/hover
|
|
|
|
syntax term " ++ " value : term
|
|
--^ textDocument/hover
|