Value of Identifier parsed in linter view

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 => {
         
    }

}

The syntax tree doesn’t store node content. You’ll have to read the range the node covers from the document.

Ok, was doing that and it works fine. Wanted to see if there was an easier way.
Thx