Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit185c422

Browse files
committed
Merge pull request#13 from noprompt/master
Highlight CSS functions as :function
2 parents9c3837e +e099e73 commit185c422

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ test/scanners
2020
bench/test.div.html
2121
diff.html
2222
etc/CodeRay.tmproj
23+
*.swp

‎lib/coderay/scanners/css.rb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def scan_tokens encoder, options
144144
encoder.end_group:string
145145

146146
elsifmatch=scan(/#{RE::Function}/o)
147-
encoder.begin_group:string
147+
encoder.begin_group:function
148148
start=match[/^\w+\(/]
149149
encoder.text_tokenstart,:delimiter
150150
ifmatch[-1] == ?)
@@ -153,7 +153,7 @@ def scan_tokens encoder, options
153153
else
154154
encoder.text_tokenmatch[start.size..-1],:content
155155
end
156-
encoder.end_group:string
156+
encoder.end_group:function
157157

158158
elsifmatch=scan(/(?:#{RE::Dimension} |#{RE::Percentage} |#{RE::Num} )/ox)
159159
encoder.text_tokenmatch,:float

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp