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

[emacs] Handle vector types, arbitary integer types and function names #88246

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

lukel97
Copy link
Contributor

@lukel97 lukel97 commented Apr 10, 2024

Resurrecting this patch from https://reviews.llvm.org/D158321

This adds a few more regexp patterns for llvm-mode-syntax-table. The primitive type regexp was split out so it could be reused when handling vectors. Also worth noting is that the vector regexp needs to come before the primitive types, otherwise they will match first.

@goldsteinn I was able to address your review comments, turns out you can set a font-face for a specific match group. And < 2x i64> should be accepted now.

screenshot of new font faces matched

@lukel97 lukel97 requested a review from goldsteinn April 10, 2024 09:16
Resurrecting this patch from https://reviews.llvm.org/D158321

This adds a few more regexp patterns for llvm-mode-syntax-table. The primitive type regexp was split out so it could be reused when handling vectors. Also worth noting is that the vector regexp needs to come before the primitive types, otherwise they will match first.

@goldsteinn I was able to address your review comments, turns out you can set a font-face for a specific match group. And < 2x i64> should be accepted now.
@lukel97 lukel97 force-pushed the llvm-mode-font-lock-improvements branch from 18e2504 to ff6734d Compare April 10, 2024 09:17
@lukel97
Copy link
Contributor Author

lukel97 commented Apr 25, 2024

Gentle ping

@goldsteinn
Copy link
Contributor

Bah sorry, didn't have "@" mentions configured correctly for a while now....

This LGTM. Thank you!

@lukel97
Copy link
Contributor Author

lukel97 commented Jun 18, 2024

No worries, thanks for taking a look!

@lukel97 lukel97 merged commit e4b130f into llvm:main Jun 18, 2024
4 checks passed
clayborg pushed a commit to clayborg/llvm-project that referenced this pull request Jun 20, 2024
llvm#88246)

Resurrecting this patch from https://reviews.llvm.org/D158321

This adds a few more regexp patterns for llvm-mode-syntax-table. The
primitive type regexp was split out so it could be reused when handling
vectors. Also worth noting is that the vector regexp needs to come
before the primitive types, otherwise they will match first.
@goldsteinn
Copy link
Contributor

loving this PR :)

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.

None yet

2 participants