Documentation de Gambas - /comp/gb.eval.highlight/highlight/analyze

/comp/gb.eval.highlight/highlight/analyze

# Highlight.Analyze (gb.eval)

Static Function Analyze ( Code As String [ , Rewrite As Boolean, State As Integer ] ) As String[]

Analyzes a Gambas code line.

- Code is the line of text.

- If Rewrite is TRUE, then the code line will be rewritten.

- State is the initial highlight state of the line.

The result of the analysis is stored in the following properties:

Symbols | The string tokens.
Types | The type of each token.
Positions | The position of each token in the string, in bytes.
TextAfter | The rewritten code line, if Rewrite was TRUE.