0
Gelp
How to add regex for pointers https://sololearn.com/compiler-playground/cG3xpJ6fEUM3/?ref=app
1 Resposta
+ 1
It seems like you've provided a syntax highlighting configuration file for C and C++ files rather than your attempts. Our Q&A Discussion Section strongly appreciate problems with attempting codes. By the way here is your answer, actually in C and C++, regular expressions themselves don't directly deal with pointers. But, you can use regular expressions to match patterns within strings, including strings that might represent pointers. If you want to match pointer declarations or references within your code using regular expressions, you can define regex patterns that capture the syntax of pointers. Here you can see the example:
https://sololearn.com/compiler-playground/cTB7XiIc09UM/?ref=app
Also check those links e.g.
1. https://en.cppreference.com/w/cpp/header
2. https://en.cppreference.com/w/cpp/regex