Skip to content

Commit

Permalink
doccursor: expose cursor location
Browse files Browse the repository at this point in the history
This is used to get the file name and line for error messages in the
parser. Naturally we need to expose it.
  • Loading branch information
BrunoMSantos authored and jnikula committed Nov 19, 2023
1 parent 98d0f61 commit 8d07ace
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hawkmoth/doccursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ def meta(self):
'cursor.spelling': self._cc.spelling,
}

@property
def location(self):
return self._cc.location

@property
def comment(self):
return self._comment.spelling if self._comment else None
Expand Down

0 comments on commit 8d07ace

Please sign in to comment.