-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow macros within changelog body (#15)
This resolves issue #11 where the %autochangelog macro is throwing a parsing error.
- Loading branch information
Showing
6 changed files
with
109 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
RPM SPEC File(0,129) | ||
RpmSpecPackageBodyImpl(PACKAGE_BODY)(0,77) | ||
RpmSpecTagImpl(TAG)(0,28) | ||
PsiElement(RpmSpecTokenType.IDENTIFIER)('Name')(0,4) | ||
PsiElement(RpmSpecTokenType.:)(':')(4,5) | ||
PsiWhiteSpace(' ')(5,16) | ||
RpmSpecTagValueImpl(TAG_VALUE)(16,28) | ||
PsiElement(RpmSpecTokenType.CODE)('test-package')(16,28) | ||
PsiElement(RpmSpecTokenType.EOL)('\n')(28,29) | ||
RpmSpecTagImpl(TAG)(29,57) | ||
PsiElement(RpmSpecTokenType.IDENTIFIER)('Version')(29,36) | ||
PsiElement(RpmSpecTokenType.:)(':')(36,37) | ||
PsiWhiteSpace(' ')(37,45) | ||
RpmSpecTagValueImpl(TAG_VALUE)(45,57) | ||
RpmSpecFullMacroImpl(FULL_MACRO)(45,57) | ||
PsiElement(RpmSpecTokenType.%)('%')(45,46) | ||
RpmSpecMacroImpl(MACRO)(46,57) | ||
PsiElement(RpmSpecTokenType.IDENTIFIER)('autorelease')(46,57) | ||
PsiElement(RpmSpecTokenType.EOL)('\n')(57,58) | ||
RpmSpecTagImpl(TAG)(58,75) | ||
PsiElement(RpmSpecTokenType.IDENTIFIER)('Release')(58,65) | ||
PsiElement(RpmSpecTokenType.:)(':')(65,66) | ||
PsiWhiteSpace(' ')(66,74) | ||
RpmSpecTagValueImpl(TAG_VALUE)(74,75) | ||
PsiElement(RpmSpecTokenType.INTEGER_LITERAL)('1')(74,75) | ||
PsiElement(RpmSpecTokenType.EOL)('\n')(75,76) | ||
PsiElement(RpmSpecTokenType.EOL)('\n')(76,77) | ||
RpmSpecOtherSectionsImpl(OTHER_SECTIONS)(77,104) | ||
RpmSpecGenericSectionImpl(GENERIC_SECTION)(77,104) | ||
PsiElement(RpmSpecTokenType.SHELL_SECTION)('%build')(77,83) | ||
PsiElement(RpmSpecTokenType.EOL)('\n')(83,84) | ||
RpmSpecGenericBodyImpl(GENERIC_BODY)(84,104) | ||
PsiElement(RpmSpecTokenType.IDENTIFIER)('echo')(84,88) | ||
PsiWhiteSpace(' ')(88,89) | ||
PsiElement(RpmSpecTokenType.CODE)('"Hello')(89,95) | ||
PsiWhiteSpace(' ')(95,96) | ||
PsiElement(RpmSpecTokenType.CODE)('World"')(96,102) | ||
PsiElement(RpmSpecTokenType.EOL)('\n')(102,103) | ||
PsiElement(RpmSpecTokenType.EOL)('\n')(103,104) | ||
RpmSpecChangelogSectionImpl(CHANGELOG_SECTION)(104,129) | ||
PsiElement(RpmSpecTokenType.changelog)('%changelog')(104,114) | ||
RpmSpecChangelogBodyImpl(CHANGELOG_BODY)(114,129) | ||
PsiElement(RpmSpecTokenType.EOL)('\n')(114,115) | ||
RpmSpecFullMacroImpl(FULL_MACRO)(115,129) | ||
PsiElement(RpmSpecTokenType.%)('%')(115,116) | ||
RpmSpecMacroImpl(MACRO)(116,129) | ||
PsiElement(RpmSpecTokenType.IDENTIFIER)('autochangelog')(116,129) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Name: test-package | ||
Version: %autorelease | ||
Release: 1 | ||
|
||
%build | ||
echo "Hello World" | ||
|
||
%changelog | ||
%autochangelog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
RPM SPEC File(0,129) | ||
RpmSpecPackageBodyImpl(PACKAGE_BODY)(0,77) | ||
RpmSpecTagImpl(TAG)(0,28) | ||
PsiElement(RpmSpecTokenType.IDENTIFIER)('Name')(0,4) | ||
PsiElement(RpmSpecTokenType.:)(':')(4,5) | ||
PsiWhiteSpace(' ')(5,16) | ||
RpmSpecTagValueImpl(TAG_VALUE)(16,28) | ||
PsiElement(RpmSpecTokenType.CODE)('test-package')(16,28) | ||
PsiElement(RpmSpecTokenType.EOL)('\n')(28,29) | ||
RpmSpecTagImpl(TAG)(29,57) | ||
PsiElement(RpmSpecTokenType.IDENTIFIER)('Version')(29,36) | ||
PsiElement(RpmSpecTokenType.:)(':')(36,37) | ||
PsiWhiteSpace(' ')(37,45) | ||
RpmSpecTagValueImpl(TAG_VALUE)(45,57) | ||
RpmSpecFullMacroImpl(FULL_MACRO)(45,57) | ||
PsiElement(RpmSpecTokenType.%)('%')(45,46) | ||
RpmSpecMacroImpl(MACRO)(46,57) | ||
PsiElement(RpmSpecTokenType.IDENTIFIER)('autorelease')(46,57) | ||
PsiElement(RpmSpecTokenType.EOL)('\n')(57,58) | ||
RpmSpecTagImpl(TAG)(58,75) | ||
PsiElement(RpmSpecTokenType.IDENTIFIER)('Release')(58,65) | ||
PsiElement(RpmSpecTokenType.:)(':')(65,66) | ||
PsiWhiteSpace(' ')(66,74) | ||
RpmSpecTagValueImpl(TAG_VALUE)(74,75) | ||
PsiElement(RpmSpecTokenType.INTEGER_LITERAL)('1')(74,75) | ||
PsiElement(RpmSpecTokenType.EOL)('\n')(75,76) | ||
PsiElement(RpmSpecTokenType.EOL)('\n')(76,77) | ||
RpmSpecOtherSectionsImpl(OTHER_SECTIONS)(77,104) | ||
RpmSpecGenericSectionImpl(GENERIC_SECTION)(77,104) | ||
PsiElement(RpmSpecTokenType.SHELL_SECTION)('%build')(77,83) | ||
PsiElement(RpmSpecTokenType.EOL)('\n')(83,84) | ||
RpmSpecGenericBodyImpl(GENERIC_BODY)(84,104) | ||
PsiElement(RpmSpecTokenType.IDENTIFIER)('echo')(84,88) | ||
PsiWhiteSpace(' ')(88,89) | ||
PsiElement(RpmSpecTokenType.CODE)('"Hello')(89,95) | ||
PsiWhiteSpace(' ')(95,96) | ||
PsiElement(RpmSpecTokenType.CODE)('World"')(96,102) | ||
PsiElement(RpmSpecTokenType.EOL)('\n')(102,103) | ||
PsiElement(RpmSpecTokenType.EOL)('\n')(103,104) | ||
RpmSpecChangelogSectionImpl(CHANGELOG_SECTION)(104,129) | ||
PsiElement(RpmSpecTokenType.changelog)('%changelog')(104,114) | ||
RpmSpecChangelogBodyImpl(CHANGELOG_BODY)(114,129) | ||
PsiElement(RpmSpecTokenType.EOL)('\n')(114,115) | ||
RpmSpecFullMacroImpl(FULL_MACRO)(115,129) | ||
PsiElement(RpmSpecTokenType.%)('%')(115,116) | ||
RpmSpecMacroImpl(MACRO)(116,129) | ||
PsiElement(RpmSpecTokenType.IDENTIFIER)('autochangelog')(116,129) |