Skip to content

feat(LEXER): support function names containing the at sign #98

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

niall-byrne
Copy link
Contributor

@niall-byrne niall-byrne commented Aug 8, 2025

This is almost a repeat of the last commit.

Bash also supports having the at sign in function names:

@fake.python.decorator.fn() { echo "hello there"; }

This short commit expands the regex to support this usage.


I added a second commit to handle multiline subshells by ignoring the subshell boundaries:

(
   echo "I'm stuck in a subshell, let me out."
)

@niall-byrne niall-byrne force-pushed the master branch 2 times, most recently from 807d343 to 717e711 Compare August 8, 2025 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant