Skip to content

selector: pasing qoutes in json string #49

@sriramab

Description

@sriramab

Hi

I am trying to create a docset using dashing. My source html files have many class patterns. So i would like to change the "selectors" in json. But json has a string value format and the pattern that I want to match contains quotes, see code below. The entry I would like to see in dash.docset is getDescription and getExtraInfo from the html below

<tr class="memitem:aca99d01db1cef4b261dccc86da5523d7"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classGKTSDescription.html">GKTSDescription</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGKTimeSerie.html#aca99d01db1cef4b261dccc86da5523d7">getDescription</a> () const</td></tr>
--
  | <tr class="separator:aca99d01db1cef4b261dccc86da5523d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  | <tr class="memitem:a7387ac98f82fae5ed21990eabfa9a074"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGKTimeSerie.html#a80221b55251c17773951ff42bb3835c5">ExtraInfo</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGKTimeSerie.html#a7387ac98f82fae5ed21990eabfa9a074">getExtraInfo</a> () const</td></tr>

I tried selectors with escape character \ before " , see code below

{
    "name": "Dashing",
    "package": "dashing",
    "index": "index.html",
    "selectors": {
        "h2 class=\"memtitle": "Command",
        "tr class=\"memitem": "Function"
    },
    "ignore": [
        "ABOUT"
    ],
    "icon32x32": "",
    "allowJS": false,
    "ExternalURL": ""
}

I get the following error when building docset

panic: parsing "h2 class=\"memtitle": 10 bytes left over

How do I resolve this issue?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions