Skip to content

Commit

Permalink
self-hosted: remove preprocessor code
Browse files Browse the repository at this point in the history
  • Loading branch information
StunxFS committed Dec 25, 2023
1 parent 41b10be commit 941b418
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 217 deletions.
12 changes: 3 additions & 9 deletions lib/rivet/src/tokenizer/next.ri
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2023-present Jose Mendoza - All rights reserved. Use of this
// source code is governed by an MIT license that can be found in the LICENSE
// Copyright (C) 2023-present Jose Mendoza - All rights reserved. Use of this
// source code is governed by an MIT license that can be found in the LICENSE
// file.

import ../token;
Expand Down Expand Up @@ -209,13 +209,7 @@ extend Tokenizer {
}
return self.new_token(.Question);
},
'#' -> {
if nextc == '[' || nextc == '!' {
return self.new_token(.Hash);
}
self.pp_directive();
continue;
},
'#' -> return self.new_token(.Hash),
'&' -> {
if nextc == '&' && self.look_ahead(2).is_space() {
self.pos += 1;
Expand Down
208 changes: 0 additions & 208 deletions lib/rivet/src/tokenizer/preprocessor.ri

This file was deleted.

0 comments on commit 941b418

Please sign in to comment.