Access value of identifier or keyword using external specialize in linter view
In grammar
@tokens {
Identifier { $[a-zA-Z_\-0-9]+ }
String { '"' (!["\\] | "\\" _)* '"' }
Boolean { "#t" | "#f" }
LineComment { ";" ![\n]* }
space { $[ \t\n\r]+ }
"(" ")"
}
external specialize {Identifier} SpecializeIdent from "./tokens" {
SpecialItem
}
In this case is it possible to get the value of Identifier or special item in linter
I can find the type of node say SpecialItem by checking node.name but how to get the actual value of that type?
linter(view => {
syntaxTree(view.state).cursor().iterate(node => {
}
}