diff --git a/common/content/io.js b/common/content/io.js index f9da15df..ceef0ef8 100644 --- a/common/content/io.js +++ b/common/content/io.js @@ -639,7 +639,7 @@ execute 'syn match Option "\<\%(no\|inv\)\=\%(' . \ join(s:toggleOptions, '\|') . \ '\)\>!\=" contained nextgroup=SetMod' -syn match SetMod "\%(\[a-z_]\+\)\@<=&" contained +syn match SetMod "\%(\<[a-z_]\+\)\@<=&" contained syn region JavaScript start="\%(^\s*\%(javascript\|js\)\s\+\)\@<=" end="$" contains=@javascriptTop keepend oneline syn region JavaScript matchgroup=JavaScriptDelimiter @@ -650,7 +650,7 @@ execute 'syn region Css start="' . s:cssRegionStart . '" end="$" contains= execute 'syn region Css matchgroup=CssDelimiter' \ 'start="' . s:cssRegionStart . '<<\s*\z(\h\w*\)"hs=s+2 end="^\z1$" contains=@cssTop fold' -syn match Notation "[0-9A-Za-z-]\+>" +syn match Notation "<[0-9A-Za-z-]\+>" syn match Comment +".*$+ contains=Todo,@Spell syn keyword Todo FIXME NOTE TODO XXX contained diff --git a/common/locale/en-US/options.xml b/common/locale/en-US/options.xml index 994d5863..dfa8480c 100644 --- a/common/locale/en-US/options.xml +++ b/common/locale/en-US/options.xml @@ -93,19 +93,20 @@ the form of <name>. These tokens are replaced by the parameter name as specified in the relevant documentation. If the token is in the form <q-name>, the value of the - parameter is automatically quoted. + parameter is automatically quoted. If it is in + the form of <e-name>, its value is never shown but may be + used to test whether the given parameter is empty.

- Any substring enclosed by <[ - and ]> is automatically elided if any of the contained macros - characters aren't currently valid. A literal < or > - character may be included with the special escape sequences <lt> - or <gt> respectively. + Any substring enclosed by <{ and }> is automatically + elided if any of the contained macros characters aren't currently valid. A + literal < or > character may be included with the + special escape sequences <lt> or <gt> respectively.

For example, given the format string - <[(cmd: <column>) ]><[line: <line> ]><file>, + <{(cmd: <column>) }><{line: <line> }><file>, where line=32 and file=Lieder eines fahrenden Gesellen.txt, the result is formatted as diff --git a/common/modules/util.jsm b/common/modules/util.jsm index 1cdf4396..6643f767 100644 --- a/common/modules/util.jsm +++ b/common/modules/util.jsm @@ -303,9 +303,9 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]), let re = util.regexp() | // 3 4 - (\]>) // 5 + (\}>) // 5 ) ]]>, "giy"); while (match = re.exec(macro)) { @@ -348,7 +348,7 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]), if (end < macro.length) stack.top.elements.push(macro.substr(end)); - util.assert(stack.length === 1, "Unmatched <[ in macro"); + util.assert(stack.length === 1, "Unmatched <{ in macro"); return stack.top; },