Lukasa / language-restructuredtext

A ReStructuredText syntax package for Atom
MIT License
27 stars 15 forks source link

Directives with domains names are not parsed correctly #13

Closed Luthaf closed 8 years ago

Luthaf commented 9 years ago

Directives with domains like theses:

.. py:functions:: foo(bar) 

.. cpp:class:: Name

are parsed and highlighted as comments.

The same issue seems to appears with the Github highlighting:

.. code::

.. py:class:: Test
Alhadis commented 8 years ago

@Luthaf This is easily fixed. =) Could you tell me more about these directives, and what they're supposed to look like?

(I've only recently gotten into reStructuredText, so I'm still learning about the language. Loving it a whole lot more than Markdown)

Luthaf commented 8 years ago

These are directives for documenting functions/classes/... inside a specific sphinx domain (Python, C++, ...). They should look like other directives, like the .. code:: one.

Alhadis commented 8 years ago

I'll work on it right now. =) Merci!

(I speak French better than Python, it would seem...)

Alhadis commented 8 years ago

... okay, this might take a while. This entire grammar needs to be, uhm, restructured.

Luthaf commented 8 years ago

\o/ Thanks!