waveclaw / language-rpm-spec

Atom support for basic RPM specfiles
MIT License
3 stars 3 forks source link

sections following shell statements in %pre may not highlight #2

Closed waveclaw closed 9 years ago

waveclaw commented 9 years ago

The grammar may fail to highlight a section immediately following %pre if there is shell code in that section.

Example to reproduce:

%pre
if [ $1 == 0 ]
 mkuser foo
fi

%post
if [ $1 == 0 ]
 rmuser foo
fi

The %post macro to start the post section will not highlight.

waveclaw commented 9 years ago

unable to reproduce with 0.3 and later sections code