Lines Matching +full:work +full:- +full:around
1 # SPDX-License-Identifier: GPL-2.0
4 # Apply kernel-specific tweaks after the initial document processing
33 RE_function = re.compile(r'\b(([a-zA-Z_]\w+)\(\))', flags=ascii_p3)
38 RE_generic_type = re.compile(r'\b(struct|union|enum|typedef)\s+([a-zA-Z_]\w+)',
45 RE_struct = re.compile(r'\b(struct)\s+([a-zA-Z_]\w+)', flags=ascii_p3)
46 RE_union = re.compile(r'\b(union)\s+([a-zA-Z_]\w+)', flags=ascii_p3)
47 RE_enum = re.compile(r'\b(enum)\s+([a-zA-Z_]\w+)', flags=ascii_p3)
48 RE_typedef = re.compile(r'\b(typedef)\s+([a-zA-Z_]\w+)', flags=ascii_p3)
54 RE_doc = re.compile(r'(\bDocumentation/)?((\.\./)*[\w\-/]+)\.(rst|txt)')
59 # Reserved C words that we should skip when cross-referencing
66 # pointless to try to cross-reference them and, as has been known
124 # Keep track of cross-reference lookups that failed so we don't have to
134 # In sphinx3 we can cross-reference to C macro and function, each one with its
147 # cross-referencing inside it first.
154 lit_text = nodes.literal(classes=['xref', 'c', 'c-func'])
163 # work around that by ignoring them.
180 RE_function: 'c-func',
181 RE_generic_type: 'c-type',
183 RE_struct: 'c-struct',
184 RE_union: 'c-union',
185 RE_enum: 'c-enum',
186 RE_typedef: 'c-type',
207 # cross-referencing inside it first.
222 # work around that by ignoring them.
255 # work around that by ignoring them.
284 # avoid adding cross-references to functions that have been explicitly
308 app.connect('doctree-resolved', auto_markup)