Skip to content

Commit

Permalink
chore: fix k comment lexing
Browse files Browse the repository at this point in the history
  • Loading branch information
x86y committed Oct 17, 2023
1 parent 6a43685 commit e00b009
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Beacon.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 3;
DEVELOPMENT_ASSET_PATHS = "\"Beacon/Preview Content\"";
DEVELOPMENT_TEAM = KPW29M2DBH;
ENABLE_PREVIEWS = YES;
Expand Down Expand Up @@ -773,7 +773,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 3;
DEVELOPMENT_ASSET_PATHS = "\"Beacon/Preview Content\"";
DEVELOPMENT_TEAM = KPW29M2DBH;
ENABLE_PREVIEWS = YES;
Expand Down
3 changes: 1 addition & 2 deletions Beacon/Utilities/LexK.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func parseK(_ str: String) -> [String] {
while i < str.count, charAt(str, i) != "\n" {
i += 1
}
if charAt(str, i) == "\n" { res[i] = endL }
} else if fns.contains(c) || c.unicodeScalars.first!.value >= 0x80 {
res[i] = fnsC
} else if mop.contains(c) {
Expand Down Expand Up @@ -72,8 +73,6 @@ func parseK(_ str: String) -> [String] {
}
} else if !" \t".contains(c) {
res[i] = regC
} else if c == "\n" {
res[i] = endL
}
i += 1
}
Expand Down

0 comments on commit e00b009

Please sign in to comment.