Skip to content

[Make] Comments are not always recognized #40

@ArkadiuszMichalski

Description

@ArkadiuszMichalski

For Make lexer comments are not recognized in all contexts. Code for test:

# I'm comment (OK)

test = 5 # I'm comment (BAD)

$(info $(test)) # I'm comment (BAD)

clean: # I'm comment (BAD)
	echo # I'm not comment (OK)

Looks like the lexer is very simple (there is a more complex version in Notepad2 project).

Some results:

SciTE:
image

Visual Studio Code:
image

Notepad2:
image

Refs:
https://www.gnu.org/software/make/manual/make.html#Makefile-Contents
https://www.gnu.org/software/make/manual/make.html#index-_0023-_0028comments_0029_002c-in-recipes

Metadata

Metadata

Assignees

No one assigned

    Labels

    makefileCaused by the makefile lexer

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions