Does anyone here know #pygments or #chroma lexer stuff well enough to tell me how (if at all?) one can mark up stuff in *multiple ways at once*?

For instance the following line:

# foo **bar**

The entire line should be a "Heading", the first two characters and the stars should be "Keyword"s, and the bar should be "GenericStrong".

I can't for the life of me figure out how that's possible to achieve.

CC @avghelper

@avghelper The Markdown parser would have the same issues, but it just kinda gives up and only does one match for the entire line, forgetting the inner syntax, which I think is disturbing.
Best I can do.
Create a lexer for Markless by Shinmera · Pull Request #1195 · alecthomas/chroma

Markless is an open document markup standard specified at https://shirakumo.org/docs/markless Reference implementations of full parsers, a test suite, sample documents, and more can be found on the...

GitHub
Wow, it was merged already! 

Okey, also did a patch for Pygments now:

https://github.com/pygments/pygments/pull/3018

Create a lexer for Markless. by Shinmera · Pull Request #3018 · pygments/pygments

Markless is an open document markup standard specified at https://shirakumo.org/docs/markless Reference implementations of full parsers, a test suite, sample documents, and more can be found on the...

GitHub
@shinmera Yukari+Haruna ^~^ (enjoying your Though to Myself book, thankies!)
@yottatsa Would love to hear your thoughts on it once you're done with it! ❤️
@shinmera @avghelper wouldn't this work out of the box? are you writing a pygments parser for markless?
@crmsnbleyd For Chroma first, but yes, since it's the same system.