Skip to content

Commit

Permalink
fix: wrong export in ruby mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mkslanc authored and nightwing committed Mar 31, 2024
1 parent 0310265 commit 501ec5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ace-modes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,7 @@ declare module "ace-code/src/mode/ruby_highlight_rules" {
export const constantNumericHex: { token: string; regex: string; };
export const constantNumericBinary: { token: string; regex: RegExp; };
export const constantNumericDecimal: { token: string; regex: RegExp; };
export const constantNumericDecimal: { token: string; regex: RegExp; };
export const constantNumericOctal: { token: string; regex: RegExp; };
export const constantNumericRational: { token: string; regex: RegExp; };
export const constantNumericComplex: { token: string; regex: RegExp; };
export const constantNumericFloat: { token: string; regex: string; };
Expand Down
2 changes: 1 addition & 1 deletion src/mode/ruby_highlight_rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var constantNumericDecimal = exports.constantNumericDecimal = {
regex: /\b(0[dD](?:[1-9](?:[\d]|_(?=[\d]))*|0))\b/
};

var constantNumericOctal = exports.constantNumericDecimal = {
var constantNumericOctal = exports.constantNumericOctal = {
token: "constant.numeric",
regex: /\b(0[oO]?(?:[1-7](?:[0-7]|_(?=[0-7]))*|0))\b/
};
Expand Down

0 comments on commit 501ec5f

Please sign in to comment.