How can I check if the cursor is inside a comment section like this in C:
/* * Comment section */
Or in python:
""" Doc string """ # Comment line
My idea for C is, that I just look, what the first characters are but I have no clue how to check, if the cursor is inside a doc string. Do you have any ideas?