Skip to content

Commit 7702cf6

Browse files
committed
[SB05-065] lkql: Fix lkql_doc_class syntax check
Change-Id: I484c9cd8029dd0e2a4a16260005f40b0846a4def
1 parent bda176e commit 7702cf6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

user_manual/source/lkql_doc_class.py

+5
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ def visit_literal_block(self, node) -> None:
106106
"""
107107
Visit code blocks and check if they're valid LKQL code.
108108
"""
109+
110+
# Don't check non lkql blocks
111+
if node.attributes['language'].lower().strip() != 'lkql':
112+
return
113+
109114
text = node[0].astext()
110115
unit = self.lkql_context.get_from_buffer('<buffer>', text)
111116
if unit.diagnostics:

0 commit comments

Comments
 (0)