Skip to content

Commit 26f06ff

Browse files
committed
Don't treat # as comment syntax
It's more common for #foo to signify enum class syntax, and it will become the only option in future. Closes #36
1 parent a522f61 commit 26f06ff

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

hack-mode.el

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,11 +1266,6 @@ interpolating inside the XHP expression."
12661266
(modify-syntax-entry ?\\ "\\" table)
12671267
(modify-syntax-entry ?' "\"" table)
12681268

1269-
;; Comments of the form
1270-
;; # This is a single-line comment.
1271-
;; Tag these as comment sequence b.
1272-
(modify-syntax-entry ?# "< b" table)
1273-
12741269
;; / can start both // and /* style comments. When it's a second
12751270
;; character, it's a single line comment, so also tag as comment
12761271
;; sequence b.
@@ -1280,8 +1275,8 @@ interpolating inside the XHP expression."
12801275
;; character in the end */.
12811276
(modify-syntax-entry ?* ". 23" table)
12821277

1283-
;; Newlines end both # and // comments. Ensure we support both
1284-
;; unix and dos style newlines.
1278+
;; Newlines end // comments. Ensure we support both unix and dos
1279+
;; style newlines.
12851280
(modify-syntax-entry ?\n "> b" table)
12861281
(modify-syntax-entry ?\^m "> b" table)
12871282

0 commit comments

Comments
 (0)