Skip to content

Recognise !--- as a document separator in properties files #1129

@pmahony893

Description

@pmahony893

Expected Behaviour
In properties files, !--- and #--- can both be used to separate documents (as long as there's no neighbouring comment with the same prefix). The editor should recognise this when parsing properties files.

E.g. the following properties file should show an error about duplicate properties def, but not abc:

abc=1
!---
abc=2
def=3
#---
# some comment
def=4

Current Behaviour
With the properties file, above, the editor raises errors for duplicate properties abc, and not def, because it does not recognise !--- as a document separator, and it does not take notice of the # some comment line "cancelling" the #--- separator.

Context

This causes unnecessary errors to show up in the problems view, and also causes actual errors to not appear.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions