We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afa2be7 commit 7ef6f77Copy full SHA for 7ef6f77
lib/coderay/scanners/go.rb
@@ -103,7 +103,14 @@ def scan_tokens encoder, options
103
end
104
encoder.text_token match, :delimiter
105
state = :string
106
-
+
107
+ elsif match = scan(/ ` ([^`]+)? (`)? /x)
108
+ encoder.begin_group :shell
109
+ encoder.text_token '`', :delimiter
110
+ encoder.text_token self[1], :content if self[1]
111
+ encoder.text_token self[2], :delimiter if self[2]
112
+ encoder.end_group :shell
113
114
elsif match = scan(/ \# \s* if \s* 0 /x)
115
match << scan_until(/ ^\# (?:elif|else|endif) .*? $ | \z /xm) unless eos?
116
encoder.text_token match, :comment
0 commit comments