Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/rouge/demos/abap
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
* Create a new object
DATA(lo_obj) = new zcl_obj_factory(
EXPORTING
input = |some nice string|
)
DATA(lo_subobj) ?= lo_obj->do_nothing( 'Char' && ` String` ).

" fetch material data
SELECT SINGLE matnr, matkl, mtart, maktx
FROM mara
INNER JOIN makt
Expand Down
4 changes: 2 additions & 2 deletions lib/rouge/lexers/abap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class ABAP < RegexLexer
state :root do
rule %r/\s+/m, Text

rule %r/".*/, Comment::Single
rule %r(^\*.*), Comment::Multiline
rule %r/(".*?$)/, Comment::Single
rule %r/(^\*.*?$)/, Comment::Single
rule %r/\d+/, Num::Integer

# String templates |...|
Expand Down
Loading