Skip to content
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

EXCEPTION not highlighted #2

Open
adsworth opened this issue Sep 25, 2013 · 1 comment
Open

EXCEPTION not highlighted #2

adsworth opened this issue Sep 25, 2013 · 1 comment

Comments

@adsworth
Copy link
Contributor

Hi,

EXCEPTION was not highlighted in a RAISE EXCEPTION TYPE classname statement.
I had to add EXCEPTION to the keyword list and also remove the |\s*TYPE at the end of the regular expression.

I'm not submitting a pull request yet, as I'm not to sure why the |\s*TYPE is added.

Regards
Adi

@PavelJaros
Copy link
Owner

Hi Adi,

The reason for regexp (\s_=|(|\s_LIKE|\s*TYPE) at the end of keywords list is that I don't want to highlight these keywords in some specific context. For example:

DATA: excluding TYPE c,
exit LIKE c.

exit = 'X'.

Otherwise both "excluding" and "exit" would be highlighted.

Regards,

Pavel

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

No branches or pull requests

2 participants