oleg-shilo / codemap.vscode

Code map (syntax tree) of the active document
MIT License
85 stars 28 forks source link

Support newline in regex #38

Closed adamerose closed 4 years ago

adamerose commented 4 years ago

I'm trying to denote code sections like this which requires detecting the section with the top line and naming it with the bottom one

# ==============================================================================
# Authentication
oleg-shilo commented 4 years ago

Since regex based mapper evaluates the code line by line you will need to use a dedicated mapper: https://github.com/oleg-shilo/codemap.vscode/wiki/Adding-custom-mappers#mapping-with-a-dedicated-mapper

It is actually not as complicated as one might think. :)