summaryrefslogtreecommitdiff
path: root/pygments/lexers/objective.py
diff options
context:
space:
mode:
authorlambda-karlculus <80796236+lambda-karlculus@users.noreply.github.com>2022-05-31 03:18:11 +0930
committerGitHub <noreply@github.com>2022-05-30 19:48:11 +0200
commita9641d731c2f657f377fce7be98f935a33a163df (patch)
tree6395dd1c9ae2d6af332d40e09c61488f93c8ab33 /pygments/lexers/objective.py
parentcd5cf1aba811f55295827858f5af9823f348c16d (diff)
downloadpygments-git-a9641d731c2f657f377fce7be98f935a33a163df.tar.gz
Fix comments within function declarations in C (#1891) (#2140)
Co-authored-by: Jean Abou Samra <jean@abou-samra.fr>
Diffstat (limited to 'pygments/lexers/objective.py')
-rw-r--r--pygments/lexers/objective.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/objective.py b/pygments/lexers/objective.py
index bbe94962..c9c4278f 100644
--- a/pygments/lexers/objective.py
+++ b/pygments/lexers/objective.py
@@ -175,12 +175,12 @@ def objective(baselexer):
return 0.8
return 0
- def get_tokens_unprocessed(self, text):
+ def get_tokens_unprocessed(self, text, stack=('root',)):
from pygments.lexers._cocoa_builtins import COCOA_INTERFACES, \
COCOA_PROTOCOLS, COCOA_PRIMITIVES
for index, token, value in \
- baselexer.get_tokens_unprocessed(self, text):
+ baselexer.get_tokens_unprocessed(self, text, stack):
if token is Name or token is Name.Class:
if value in COCOA_INTERFACES or value in COCOA_PROTOCOLS \
or value in COCOA_PRIMITIVES: