missed some entries in the last commits
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
start: title _EL description _EL property+ _EL (note)? building
|
||||
start: title _EL property+ _EL (note)? building
|
||||
title: "#" /(?! ).+(?<! )/ _NL // not starting or ending with a space
|
||||
|
||||
description: "_" /(?! ).+(?<![ _])/ "_" _NL // single line not ending with underscore
|
||||
property: "-" _key ":" _values _NL
|
||||
_key : /(?! ).+?(?=:)(?<! )/ // key: everything until next ":", not beginning or ending with a space
|
||||
_values : [_value ("," _value)*]
|
||||
|
@ -75,9 +75,6 @@ class EntryTransformer(lark.Transformer):
|
||||
def title(self, x):
|
||||
return 'title', x[0].value
|
||||
|
||||
def description(self, x):
|
||||
return 'description', x[0].value
|
||||
|
||||
def note(self, x):
|
||||
"""
|
||||
Optional
|
||||
@ -614,10 +611,6 @@ def check_entry(entry):
|
||||
if canonical_file_name != file and canonical_file_name != file[:-5] + '.md':
|
||||
message += 'file name should be {}\n'.format(canonical_file_name)
|
||||
|
||||
# title should not be also in description
|
||||
if entry['title'] in entry['description']:
|
||||
message += 'title included in description, should be removed'
|
||||
|
||||
if message:
|
||||
raise RuntimeError(message)
|
||||
|
||||
|
Reference in New Issue
Block a user