style(master_data): 식 읽기 「K.P」 점 줄 정리

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JgUhN55Z3BCYhUJTjwTNfj
This commit is contained in:
2026-09-19 18:46:09 +09:00
co-authored by Claude Opus 5
parent bcfbc8b574
commit 16ebc46e7c
@@ -129,10 +129,9 @@ class _Parser:
elif depth == 0 and ch == ",":
break
elif depth == 0 and ch == "." and not self.s[self.i + 1 : self.i + 2].isdigit():
around = self.s[self.i - 1 : self.i] + self.s[self.i + 1 : self.i + 2]
if not (
around.isascii() and around.isalpha() and len(around) == 2
): # 「K.P」「T.S」 는 열쇠 글자
# 「K.P」「T.S」 처럼 영문자 사이 점은 열쇠 글자
around = self.s[self.i - 1 : self.i + 2 : 2]
if not (len(around) == 2 and around.isascii() and around.isalpha()):
break
elif depth == 0 and re.match(r"\s[-+*/<>=!]", self.s[self.i : self.i + 2]):
break