Menu

#2277 Fix line continuation in forth properties

Bug
closed-fixed
nobody
5
2021-09-22
2021-08-28
No

Platform: win32 on Windows 7, if it matters.

The file forth.properties has some line continuation issues.

Current excerpt of concern:

comment.block.forth=\
#comment.block.at.line.start.forth=0
comment.stream.start.forth=(
comment.stream.end.forth=)
comment.box.start.forth=\
comment.box.middle.forth=\
comment.box.end.forth=\

The comment character for forth is the \ character. Unfortunately, it is also a line continuation character when next to a newline character in a properties file.

To clarify, I refer to newline as like in Python where \n can be \r\n when printed, written... so perhaps should state newline sequence instead.

Presumably:

  • comment.block.forth
    = #comment.block.at.line.start.forth=0
  • comment.box.start.forth
    = comment.box.middle.forth=comment.box.end.forth=

as the \\n is removed to resolve the continuation.

The solution I offer is to double each character in the \\n sequence to \\\n\n which appears to work in SciTE with example Ctrl+Q to comment the line. The \\n is removed leaving \\n which keeps the \ as the property value.

I also removed a extra space from value of keywords.$(file.patterns.forth) as is not needed.

Patch is attached.

1 Attachments

Related

Bugs: #2278

Discussion

  • Neil Hodgson

    Neil Hodgson - 2021-08-29
    • status: open --> open-fixed
     
  • Neil Hodgson

    Neil Hodgson - 2021-08-29

    OK, that is a reasonable fix. Committed as [aaaf77] and [c4a52c].

    I also changed the file filter text with [f175b4] as it was confusing to see (f spf) but only files that had forth extension.

     

    Related

    Commit: [aaaf77]
    Commit: [c4a52c]
    Commit: [f175b4]

  • Neil Hodgson

    Neil Hodgson - 2021-09-22
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.