Skip to content
New issue

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

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

Already on GitHub? # to your account

[Bug] Token alias is being ignored #2

Closed
X39 opened this issue May 26, 2020 · 1 comment
Closed

[Bug] Token alias is being ignored #2

X39 opened this issue May 26, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@X39
Copy link

X39 commented May 26, 2020

Summary

Aliasing a Token and using that aliased token will result in the token being marked as error.
It also is not having a special Syntax-Highlighting nor is the tooltip displayed.

Steps to Reproduce

  1. Create a file called eg. file.y
  2. Paste the code at the end of this section into it
    • YST_TEST is marked as unused
    • "test" is missing tooltip

Expected

    • YST_TEST is marked as being used
    • "test" is displaying a tooltip

Example

image

%union { char* str; }
%token <str> YST_TEST "test"
%start start

%%

start: 'a'
     | "something"
     | "test"
     ;

%%

Related Documentation

https://www.gnu.org/software/bison/manual/html_node/Token-Decl.html

@babyraging
Copy link
Owner

Hi there, thank you very much for the issue, I'm glad that you provided an example code for me to test, thanks again :)

Yes, this is a feature that I wanted to add weeks ago but then... I forgot it.....

I will try to have it fixed by the weekend.

@babyraging babyraging added the bug Something isn't working label May 27, 2020
@babyraging babyraging self-assigned this May 27, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants