Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
c50cded9
Commit
c50cded9
authored
Jun 07, 2017
by
http://jneen.net/
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove the rouge copypasta and add notes to refactor
parent
b14f313c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
28 deletions
+4
-28
lib/rouge/lexers/math.rb
lib/rouge/lexers/math.rb
+2
-14
lib/rouge/lexers/plantuml.rb
lib/rouge/lexers/plantuml.rb
+2
-14
No files found.
lib/rouge/lexers/math.rb
View file @
c50cded9
module
Rouge
module
Lexers
class
Math
<
Lexer
class
Math
<
PlainText
title
"A passthrough lexer used for LaTeX input"
desc
"A boring lexer that doesn't highlight anything"
desc
"PLEASE REFACTOR - this should be handled by SyntaxHighlightFilter"
tag
'math'
mimetypes
'text/plain'
default_options
token:
'Text'
def
token
@token
||=
Token
[
option
:token
]
end
def
stream_tokens
(
string
,
&
b
)
yield
self
.
token
,
string
end
end
end
end
lib/rouge/lexers/plantuml.rb
View file @
c50cded9
module
Rouge
module
Lexers
class
Plantuml
<
Lexer
class
Plantuml
<
PlainText
title
"A passthrough lexer used for PlantUML input"
desc
"A boring lexer that doesn't highlight anything"
desc
"PLEASE REFACTOR - this should be handled by SyntaxHighlightFilter"
tag
'plantuml'
mimetypes
'text/plain'
default_options
token:
'Text'
def
token
@token
||=
Token
[
option
:token
]
end
def
stream_tokens
(
string
,
&
b
)
yield
self
.
token
,
string
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment