mirror of
https://github.com/atom/atom.git
synced 2026-01-26 07:19:06 -05:00
It feels more natural for these rules to be applied top to bottom rather than bottom to top.
This commit is contained in:
@@ -919,7 +919,7 @@ class LayerHighlightIterator {
|
||||
const applyLeafRules = (rules, cursor) => {
|
||||
if (!rules || typeof rules === 'string') return rules
|
||||
if (Array.isArray(rules)) {
|
||||
let i = rules.length; while (i --> 0) {
|
||||
for (let i = 0, {length} = rules; i != length; ++i) {
|
||||
const result = applyLeafRules(rules[i], cursor)
|
||||
if (result) return result
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user