diff options
author | Neil <nyamatongwe@gmail.com> | 2019-06-18 10:08:28 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2019-06-18 10:08:28 +1000 |
commit | aa32bc4b3a402b068e48db4d387ba62eeaefee90 (patch) | |
tree | 0e64b5c63ac53785f1a06741670b8a3e504ad970 /scripts/CheckMentioned.py | |
parent | 97e36abea7d004d515edfea0a7930e0b6515bfa7 (diff) | |
download | scintilla-mirror-aa32bc4b3a402b068e48db4d387ba62eeaefee90.tar.gz |
Feature [feature-requests:#1297] 2: Use position and line more in documentation.
Diffstat (limited to 'scripts/CheckMentioned.py')
-rw-r--r-- | scripts/CheckMentioned.py | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/scripts/CheckMentioned.py b/scripts/CheckMentioned.py index 5e6d1eefd..2694b7a49 100644 --- a/scripts/CheckMentioned.py +++ b/scripts/CheckMentioned.py @@ -51,9 +51,7 @@ with open(docFileName, "rt") as docFile: symbols[word] = 1 def convertIFaceTypeToC(t): - if t == "position": - return "int " - elif t == "keymod": + if t == "keymod": return "int " elif t == "string": return "const char *" @@ -129,12 +127,14 @@ def flattenSpaces(s): def printCtag(ident, path): print(ident.strip() + "\t" + path + "\t" + "/^" + ident + "$/") +showCTags = True + def checkDocumentation(): with open(docFileName, "rt") as docFile: docs = docFile.read() face, sciToFeature, sccToValue = retrieveFeatures() - + headers = {} definitions = {} @@ -152,9 +152,9 @@ def checkDocumentation(): name = sciToFeature[api] sigFromFace = api + makeSig(face.features[name]) if sigFlat != sigFromFace: - pass - print(sigFlat, sigFromFace) - #~ printCtag(api, docFileName) + print(sigFlat, "|", sigFromFace) + if showCTags: + printCtag(api, docFileName) #~ printCtag(" " + name, pathIface) if api != sigApi: print(sigApi, ";;", sig, ";;", api) @@ -183,8 +183,9 @@ def checkDocumentation(): name = sciToFeature[api] sigFromFace = api + makeSig(face.features[name]) if sigFlat != sigFromFace: - print(sigFlat, sigFromFace) - #~ printCtag('="' + api, docFileName) + print(sigFlat, "|", sigFromFace) + if showCTags: + printCtag('="' + api, docFileName) #~ printCtag(" " + name, pathIface) except KeyError: pass # Feature removed but still has documentation |