Permalink
Browse files

Update default param regex

Since SassDoc 2.0, it's square brackets instead of parens.
  • Loading branch information...
1 parent e1adc8f commit b59a34c2fed65b9e25aabefeabf50415a40babd3 @valeriangalliat valeriangalliat committed Feb 6, 2015
Showing with 3 additions and 3 deletions.
  1. +2 −2 example.html
  2. +1 −1 prism-scss-sassdoc.js
View
@@ -34,9 +34,9 @@
/// @author Foo Bar <foo@bar.com>
/// @deprecated Hey <http://message/with/link>.
/// @type Bool | Map
-/// @prop {String} world (!) - A description.
+/// @prop {String} world [!] - A description.
/// @prop nested - Nested map (something).
-/// @prop {String | Bool} nested.foo (bar) - Stuff.
+/// @prop {String | Bool} nested.foo [bar] - Stuff.
///
/// @example
/// An example!
@@ -50,7 +50,7 @@
pattern: /@(param|arg(ument)?|prop|requires|see)( .*|\r?\n|$)/g,
inside: {
'default': {
- pattern: RegExp('^(' + _annotation + '(\\s+' + _type + ')?\\s+' + _param + ')\\s+\\([^\\)]+\\)', 'gi'),
+ pattern: RegExp('^(' + _annotation + '(\\s+' + _type + ')?\\s+' + _param + ')\\s+\\[[^\\)]+\\]', 'gi'),
lookbehind: true,
alias: 'string'
},

0 comments on commit b59a34c

Please sign in to comment.