Skip to content

Commit

Permalink
Allow underscores in numeric literals.
Browse files Browse the repository at this point in the history
  • Loading branch information
athas committed Apr 2, 2024
1 parent 8e830a6 commit ebc4a5c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions futhark-highlight.el
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,16 @@ name)."
"\\<\\(?:"
(concat "\\(?:"
"\\(?:0[xX]\\)"
"[0-9a-fA-F]+"
"\\(?:\\.[0-9a-fA-F]+\\)?"
"\\(?:[pP][+-]?[0-9]+\\)?"
"[0-9a-fA-F_]+"
"\\(?:\\.[0-9a-fA-F_]+\\)?"
"\\(?:[pP][+-]?[0-9_]+\\)?"
"\\|"
"\\(?:0[bB]\\)"
"[0-1]+"
"[0-1_]+"
"\\|"
"[0-9]+"
"\\(?:\\.[0-9]+\\)?"
"\\(?:e-?[0-9]+\\)?"
"[0-9_]+"
"\\(?:\\.[0-9_]+\\)?"
"\\(?:e-?[0-9_]+\\)?"
"\\)"
)
"\\(?:i8\\|i16\\|i32\\|i64\\|u8\\|u16\\|u32\\|u64\\|f16\\|f32\\|f64\\)?"
Expand Down

0 comments on commit ebc4a5c

Please sign in to comment.