From cf3f859add74d8c5761b9638014a329e15a56134 Mon Sep 17 00:00:00 2001 From: eduzappa18 Date: Sun, 13 Oct 2019 22:00:17 -0300 Subject: [PATCH] fix "case" and "default" detected as labels --- src/EnhancedXcodeTags.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EnhancedXcodeTags.user.js b/src/EnhancedXcodeTags.user.js index ded00ac..a8bed6e 100644 --- a/src/EnhancedXcodeTags.user.js +++ b/src/EnhancedXcodeTags.user.js @@ -2,7 +2,7 @@ // @name xNULL EnhancedXcodeTags // @namespace EnhancedXcodeTags // @description Improved xcode tags for the xNULL forum -// @version 0.1.0 +// @version 0.1.1 // @author Zappa (eduzappa18) // @license MIT; https://github.com/eduzappa18/EnhancedXcodeTags/blob/master/LICENSE // @homepageURL https://github.com/eduzappa18/EnhancedXcodeTags @@ -151,7 +151,7 @@ function PrismHack() { greedy: true }, 'moh-thread': { - pattern: /^([ \t]+)*[\w-]+(?=([ \t]+[\w\.-]+)*[:])/m, + pattern: /^([ \t]+)*(?!\b(default|case)\b)[\w-]+(?=([ \t]+[\w\.-]+)*[:])/m, lookbehind: true }, 'keyword': /\b(break|case|catch|continue|default|else|end|for|goto|if|switch|throw|try|while)\b/,