Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ git clone git@github.com:strictdoc-project/strictdoc.tmLanguage.git

In the cloned `strictdoc.tmLanguage` folder, there is a file called
`syntaxes/sdoc.tmLanguage.json`. Open that file and replace all occurrences of
`source.rst` with `lngpck.source.rst`. This is needed because TM4E language
`text.restructuredtext` with `lngpck.text.restructuredtext`. This is needed because TM4E language
repository maintains all its .json language files under the `lngpck.*`
namespace. Changing to `lngpck.source.rst` helps the StrictDoc grammar to
namespace. Changing to `lngpck.text.restructuredtext` helps the StrictDoc grammar to
properly locate the RST grammar in Eclipse.

Follow the same steps as for RST above: import the `sdoc.tmLanguage.json` file.
Expand Down
4 changes: 2 additions & 2 deletions syntaxes/sdoc.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -718,11 +718,11 @@
"value_rst": {
"begin": ">>>$",
"end": "^<<<$",
"contentName": "source.rst",
"contentName": "text.restructuredtext",
"patterns": [
{
"comment": "FIXME: # 'The problem of leaking incorrect RST markup'. An invalid included RST markup breaks further markup of the file by exceeding the scope and eating at least one end-of-scope marker. In the file tmLanguage (plist) in the program TextMate it was possible to capture the scope with RST content more clearly, and the RST text does not leak to the limits of the scope. Using this method in this file does not work.",
"include": "source.rst"
"include": "text.restructuredtext"
}
],
"captures": { "0": { "name": "string.quoted.double.sdoc" } }
Expand Down