ThomasGysemans / code_editor

A code editor (dart, js, html, ...) for Flutter with syntax highlighting and custom theme.
MIT License
73 stars 17 forks source link

How this editor know this was class, variable and function etc. for perticular language #14

Closed CodeWithNav closed 1 year ago

ThomasGysemans commented 1 year ago

Hi, your question isn't very clear... If you're wondering how the syntax highlighting manages to recognize what's a class, a variable or a function from plain text, then I'll have to say that it depends. It depends on the way the abstract tree is generated.

I'm not responsible of that part. I use this package for the syntax highlighting: flutter_highlight.

Maybe you could find interesting info here on a Abstract Syntax Tree