Skip to content

Languages: Hack ?? #6669

Closed Answered by lildude
Burke-Knight asked this question in Classification
Discussion options

You must be logged in to vote

You've not provided a link to the repo where you are seeing this so I poked around your profile and I can see you've probably taken this from https://github.com/Burke-Knight/Blocks-Website-Template

The reason you are seeing this is because Hack and PHP share the .php extension and we use a heuristic to determine which is Hack and which is PHP:

- extensions: ['.php']
rules:
- language: Hack
pattern: '<\?hh'
- language: PHP
pattern: '<\?[^h]'

You have six .php files which don't actually contain any PHP or Hack code that match these regular expressions... in fact they don't contain any…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Burke-Knight
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants