samvv / mage

A work-in-progress lexer/parser generator for a growing number of languages
1 stars 1 forks source link

Implement a 'keyword' token that automatically checks the bounds of keyword tokens #6

Open samvv opened 7 months ago

samvv commented 7 months ago

Idea taken from the tee-sitter documentation.

Something like the following:

@keyword
pub token ident = [a-z_]+