Skip to content

Commit

Permalink
Allow , in C# base classes
Browse files Browse the repository at this point in the history
Fixes #1540
  • Loading branch information
isagalaev committed Jun 12, 2017
1 parent 3f96fc1 commit 1ee1647
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/languages/cs.js
Expand Up @@ -120,7 +120,7 @@ function(hljs) {
hljs.C_NUMBER_MODE,
{
beginKeywords: 'class interface', end: /[{;=]/,
illegal: /[^\s:]/,
illegal: /[^\s:,]/,
contains: [
hljs.TITLE_MODE,
hljs.C_LINE_COMMENT_MODE,
Expand Down
2 changes: 1 addition & 1 deletion test/markup/cs/titles.expect.txt
@@ -1,6 +1,6 @@
<span class="hljs-keyword">namespace</span> <span class="hljs-title">Foo</span> <span class="hljs-comment">// namespace</span>
{
<span class="hljs-keyword">public</span> <span class="hljs-keyword">class</span> <span class="hljs-title">Greet</span> : <span class="hljs-title">Base</span> <span class="hljs-comment">// class</span>
<span class="hljs-keyword">public</span> <span class="hljs-keyword">class</span> <span class="hljs-title">Greet</span> : <span class="hljs-title">Base</span>, <span class="hljs-title">Other</span> <span class="hljs-comment">// class</span>
{
<span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-title">Greet</span>(<span class="hljs-params"><span class="hljs-keyword">string</span> who</span>) <span class="hljs-comment">// function</span>
</span>{
Expand Down
2 changes: 1 addition & 1 deletion test/markup/cs/titles.txt
@@ -1,6 +1,6 @@
namespace Foo // namespace
{
public class Greet : Base // class
public class Greet : Base, Other // class
{
public Greet(string who) // function
{
Expand Down

0 comments on commit 1ee1647

Please sign in to comment.