Skip to content

Commit

Permalink
fix(toml) Improve key parsing
Browse files Browse the repository at this point in the history
Fixes: #2594
  • Loading branch information
aduh95 committed Jun 8, 2020
1 parent c4c9772 commit 941c8ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/languages/ini.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default function(hljs) {
begin: /\[+/, end: /\]+/
},
{
begin: /^[a-z0-9\[\]_\.-]+(?=\s*=\s*)/,
begin: /^\s*([A-Za-z0-9_-]+|(\s*\.\s*)|"(\\"|[^"])*"|'[^']*')+(?=\s*=\s*)/,
className: 'attr',
starts: {
end: /$/,
Expand Down

0 comments on commit 941c8ad

Please sign in to comment.