20 lines
453 B
Smalltalk
20 lines
453 B
Smalltalk
|
Class {
|
||
|
#name : #HedgeDocGrammar,
|
||
|
#superclass : #PP2CompositeNode,
|
||
|
#instVars : [
|
||
|
'youtubeEmbeddedLink'
|
||
|
],
|
||
|
#category : #'MiniDocs-Model'
|
||
|
}
|
||
|
|
||
|
{ #category : #accessing }
|
||
|
HedgeDocGrammar >> start [
|
||
|
^ #any asPParser starLazy
|
||
|
]
|
||
|
|
||
|
{ #category : #accessing }
|
||
|
HedgeDocGrammar >> youtubeEmbeddedLink [
|
||
|
"I parse a youtube embedded link in a hedgedoc document."
|
||
|
^ '{%youtube' asPParser token trim, #any asPParser starLazy token, '%}' asPParser token trim
|
||
|
]
|