From: Chris Rebert Date: Mon, 27 Oct 2014 20:50:45 +0000 (-0700) Subject: Tweak parser to ignore empty Less section docstrings; fixes #14878 X-Git-Tag: v3.3.0~26^2~2^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af70ac8ae1e959e90e6859a36ae29d41f10ee880;p=thirdparty%2Fbootstrap.git Tweak parser to ignore empty Less section docstrings; fixes #14878 --- diff --git a/docs/_includes/customizer-variables.html b/docs/_includes/customizer-variables.html index 21a0b8797e..2c7eb69fc2 100644 --- a/docs/_includes/customizer-variables.html +++ b/docs/_includes/customizer-variables.html @@ -379,7 +379,6 @@

Forms

-

@@ -653,7 +652,6 @@
-

@@ -809,7 +807,6 @@
-

Shared nav styles

@@ -876,7 +873,6 @@

Pagination

-

@@ -928,7 +924,6 @@

Pager

-

@@ -960,7 +955,6 @@

Jumbotron

-

@@ -1036,7 +1030,6 @@

Tooltips

-

@@ -1069,7 +1062,6 @@

Popovers

-

@@ -1123,7 +1115,6 @@

Labels

-

@@ -1167,7 +1158,6 @@

Modals

-

@@ -1297,7 +1287,6 @@

Progress bars

-

@@ -1341,7 +1330,6 @@

List group

-

@@ -1412,7 +1400,6 @@

Panels

-

@@ -1517,7 +1504,6 @@

Thumbnails

-

@@ -1551,7 +1537,6 @@

Wells

-

@@ -1563,7 +1548,6 @@

Badges

-

@@ -1592,13 +1576,16 @@
+
+ + +
-

@@ -1630,7 +1617,6 @@
-

@@ -1666,7 +1652,6 @@

Close

-

@@ -1682,7 +1667,6 @@

Code

-

@@ -1718,7 +1702,6 @@

Type

-

diff --git a/grunt/bs-lessdoc-parser.js b/grunt/bs-lessdoc-parser.js index c1821de1cb..8db7bbea95 100644 --- a/grunt/bs-lessdoc-parser.js +++ b/grunt/bs-lessdoc-parser.js @@ -33,9 +33,9 @@ Mini-language: var CUSTOMIZABLE_HEADING = /^[/]{2}={2}(.*)$/; var UNCUSTOMIZABLE_HEADING = /^[/]{2}-{2}(.*)$/; var SUBSECTION_HEADING = /^[/]{2}={3}(.*)$/; -var SECTION_DOCSTRING = /^[/]{2}#{2}(.*)$/; -var VAR_ASSIGNMENT = /^(@[a-zA-Z0-9_-]+):[ ]*([^ ;][^;]+);[ ]*$/; -var VAR_DOCSTRING = /^[/]{2}[*]{2}(.*)$/; +var SECTION_DOCSTRING = /^[/]{2}#{2}(.+)$/; +var VAR_ASSIGNMENT = /^(@[a-zA-Z0-9_-]+):[ ]*([^ ;][^;]*);[ ]*$/; +var VAR_DOCSTRING = /^[/]{2}[*]{2}(.+)$/; function Section(heading, customizable) { this.heading = heading.trim();