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

Keywords not highlighted after macros with parentheses #77

Open
TheWitheredStriker opened this issue Aug 12, 2023 · 0 comments
Open

Keywords not highlighted after macros with parentheses #77

TheWitheredStriker opened this issue Aug 12, 2023 · 0 comments

Comments

@TheWitheredStriker
Copy link

Consider the following C++ snippets, respectively from an Unreal Engine C++ repo and a Flax Engine C++ repo (another C++ 3D engine):

// Harrison McGuire
// UE4 Version 4.20.2
// https://github.com/Harrison1/unrealcpp
// https://severallevels.io
// https://harrisonmcguire.com

#pragma once

#include "Camera/CameraShake.h"
#include "MyCameraShake.generated.h"

UCLASS()
class UNREALCPP_API UMyCameraShake: public UCameraShake {
	GENERATED_BODY()
	
	public:
		// Sets default values for this actor's properties
		UMyCameraShake();
	
};
// Copyright © 2022 PrecisionRender. All rights reserved.

#pragma once

#include "Engine/Scripting/Script.h"
#include "Engine/Core/Common.h"

class CharacterController;

API_CLASS() class GAME_API CharacterControllerPro: public Script {
    API_AUTO_SERIALIZATION();
    DECLARE_SCRIPTING_TYPE(CharacterControllerPro);


    public:
        API_ENUM()
        enum class MovementModes {
            Stopped,
            Walking,
            Running,
            Crouching
        };
// ...

From: https://github.com/Harrison1/unrealcpp/blob/master/CameraShake/MyCameraShake.h and https://github.com/PrecisionRender/CharacterControllerPro/blob/main/CharacterControllerProCPP/CharacterControllerPro.h.

As you can see, the keywords class and public are not highlighted, likely because they follow the macros UCLASS() and API_CLASS(), respectively (newlines make no difference). Oddly, the keywords that follow API_ENUM() seem to be highlighted just fine.

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

1 participant