Skip to content

Commit

Permalink
Revert "Scala case classes params highlight fixed, closes highlightjs…
Browse files Browse the repository at this point in the history
…#956"

This reverts commit 2974ead.

# Conflicts:
#	CHANGES.md
  • Loading branch information
Sannis committed Oct 19, 2015
1 parent 48c1473 commit 82ee0c0
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 22 deletions.
1 change: 0 additions & 1 deletion CHANGES.md
Expand Up @@ -12,7 +12,6 @@ Notable fixes and improvements to existing languages:
- Crystal highlighting improved by [Tsuyusato Kitsune][]
- Missing Swift keywords added by [Nate Cook][]
- Improve detection of C block comments
- Scala case classes params highlight fixed

[Kristoffer Gronlund]: https://github.com/krig
[Søren Enevoldsen]: https://github.com/senevoldsen90
Expand Down
17 changes: 2 additions & 15 deletions src/languages/scala.js
Expand Up @@ -37,21 +37,8 @@ function(hljs) {
var CLASS = {
className: 'class',
beginKeywords: 'class object trait type',
end: /[:={\[\n;]/,
excludeEnd: true,
contains: [
{
beginKeywords: 'extends with',
relevance: 10
},
{
'className': 'params',
'begin': /\(/,
'end': /\)/,
relevance: 0
},
NAME
]
end: /[:={\[(\n;]/,
contains: [{className: 'keyword', beginKeywords: 'extends with', relevance: 10}, NAME]
};

var METHOD = {
Expand Down
3 changes: 0 additions & 3 deletions test/markup/scala/case-classes.expect.txt

This file was deleted.

3 changes: 0 additions & 3 deletions test/markup/scala/case-classes.txt

This file was deleted.

0 comments on commit 82ee0c0

Please sign in to comment.