mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Eliminate benchmark for outdated OnigRegExp.getCaptureTree code
This commit is contained in:
@@ -92,14 +92,3 @@ describe "TokenizedBuffer.", ->
|
||||
|
||||
benchmark "construction", 20, ->
|
||||
new TokenizedBuffer(buffer, { languageMode, tabLength: 2})
|
||||
|
||||
describe "OnigRegExp.", ->
|
||||
[regexes, line] = []
|
||||
|
||||
beforeEach ->
|
||||
line = " l.comment_matcher = new RegExp('^\\s*' + l.symbol + '\\s?')"
|
||||
regexes = _.pluck(TextMateBundle.grammarForFileName('medium.coffee').initialRule.getIncludedPatterns(), "regex")
|
||||
|
||||
benchmark ".getCaptureTree", 10000, ->
|
||||
OnigRegExp.captureIndices(line, 22, regexes)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user