Skip to content

Commit

Permalink
Allow dollar signs in function/new.
Browse files Browse the repository at this point in the history
  • Loading branch information
thesoftwarephilosopher committed Aug 22, 2024
1 parent 5dd2fe4 commit f893d0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions site/monarch/samplecode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function TodoInput(attrs: { add: (v: string) => void }) {
return input;
}

class TodoList1 {
class TodoList$1 {
ul = <ul class='todolist' /> as HTMLUListElement;
add(v: string) {
const item = <li>{v}</li> as HTMLLIElement;
Expand All @@ -54,7 +54,7 @@ class TodoList1 {
}

export const sample3 = () => {
const list = new TodoList1();
const list = new TodoList$1();
list.add('foo');
list.add('bar');
return <>
Expand Down
4 changes: 2 additions & 2 deletions site/token-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ export const tokenProvider = {

newtype: [
[/\s+/, ''],
[/\w+/, 'type.identifier', '@pop'],
[/[\w$]+/, 'type.identifier', '@pop'],
],

function: [
[/\s+/, ''],
[/\w+/, 'function', '@pop'],
[/[\w$]+/, 'function', '@pop'],
],

common: [
Expand Down

0 comments on commit f893d0d

Please sign in to comment.