I am extending `rouge` shell lexer for my `jekyll` site and I want to do the following.

1. Match `--word`. Capture `word`, discard `--`.
2. Match `<word>`. Capture `word`, discard both `<` and `>`.
3. Match `word=anyNumber.word`. Capture `word` and `anyNumber.word`, discard `=`.

First I have tried `/(?=-+)\w/`, didn't match anything, then I tried to do reverse and discard `word` such as `/-+(?=\w*)/`, and it worked. What I am doing wrong?