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

FGD entry header is only colored for the first entity in a file #103

Closed
vrad-exe opened this issue Mar 12, 2023 · 0 comments
Closed

FGD entry header is only colored for the first entity in a file #103

vrad-exe opened this issue Mar 12, 2023 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@vrad-exe
Copy link

The headers of individual FGD entries only get highlighted if they are the first one in a file. Unsure if this is a result of only HammerAddons split FGDs being accounted for or just an accidental bug, but even within HammerAddons there are some cases where multiple definitions in one file are used, such as for Portal turrets to switch their model helper based on the game. Here you can see how only the first BaseClass is colored, the following two aren't (but it's keyvalues are):

image

Here's TF2's stock FGD, where you can also see only the first class being highlighted:

image

Additionally as seen in the first screenshot, comments don't seem to be colored outside of class definitions, inside they work fine.

@StefanH-AT StefanH-AT added the bug Something isn't working label Mar 12, 2023
@StefanH-AT StefanH-AT added this to the Release 1.0 milestone Mar 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants