Skip to content

Commit

Permalink
java parser fix
Browse files Browse the repository at this point in the history
  • Loading branch information
codinuum committed Feb 17, 2022
1 parent 7cdeec2 commit bbc1be6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ast/analyzing/langs/java/parsing/src/scanner.ml
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,8 @@ module F (Stat : Aux.STATE_T) = struct
let loc = loc_of_poss stp edp in
DEBUG_MSG "adding an opening brace";
Common.warning_loc loc "adding an opening brace";
let t = Token.create Tokens_.LBRACE Lexing.dummy_pos Lexing.dummy_pos in
let p = Astloc.incr_lexpos edp in
let t = Token.create Tokens_.LBRACE p p in
self#prepend_token t;
end
| _ -> ()
Expand Down

0 comments on commit bbc1be6

Please sign in to comment.